Simple Question (Direct)
Simple Question
Q7648032
P21
Q290
USER
Which sex does Mary Jeune, Baroness St Helier have ?
(Q7648032,P21,c(Q290))
action filter_type
action find
entity Q7648032
relation P21
type Q290
['Q7648032', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q7648032 property:P21 ?z }
Mary Jeune, Baroness St Helier
action filter_type
action find
entity Mary Jeune, Baroness St Helier
relation gender
type sex
['Mary Jeune, Baroness St Helier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Mary_Jeune,_Baroness_St_Helier property:gender ?z }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q7648032,P21,c(Q290))
action filter_type
action find
entity Q7648032
relation P21
type Q290
Mary Jeune , Baroness St Helier has a [ANSWER]
['Q7648032', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q7648032 property:P21 ?z }
female
Mary Jeune , Baroness St Helier has a female
female
action filter_type
action find
entity Mary Jeune, Baroness St Helier
relation gender
type sex
['Mary Jeune, Baroness St Helier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Mary_Jeune,_Baroness_St_Helier property:gender ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7648032
P26
Q502895
USER
Which person has Mary Jeune, Baroness St Helier as spouse ?
(c(Q502895),P26,Q7648032)
action filter_type
action find
entity Q7648032
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q7648032']
SELECT DISTINCT ?x WHERE { resource:Q7648032 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Mary Jeune, Baroness St Helier
action filter_type
action find
entity Mary Jeune, Baroness St Helier
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Mary Jeune, Baroness St Helier']
SELECT DISTINCT ?x WHERE { resource:Mary_Jeune,_Baroness_St_Helier property:spouse ?x . ?x rdf:type ontology:common_name }
[]
common name
Q5481495
SYSTEM
Francis Jeune, 1st Baron St Helier
Q5481495
(c(Q502895),P26,Q7648032)
action filter_type
action find
entity Q7648032
relation P26
type Q502895
[ANSWER] has Mary Jeune, Baroness St Helier as spouse
[{'concept': 'Q502895'}, 'P26', 'Q7648032']
SELECT DISTINCT ?x WHERE { resource:Q7648032 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Francis Jeune, 1st Baron St Helier
Francis Jeune, 1st Baron St Helier has Mary Jeune, Baroness St Helier as spouse
Francis Jeune, 1st Baron St Helier
action filter_type
action find
entity Mary Jeune, Baroness St Helier
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Mary Jeune, Baroness St Helier']
SELECT DISTINCT ?x WHERE { resource:Mary_Jeune,_Baroness_St_Helier property:spouse ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5481495
P97
Q4164871
USER
Which position was held by that person ?
(Q5481495,P97,c(Q4164871))
action filter_type
action find
entity Q5481495
relation P97
type Q4164871
['Q5481495', 'P97', {'concept': 'Q4164871'}]
SELECT DISTINCT ?g WHERE { resource:Q5481495 property:P97 ?g . ?g rdf:type ontology:Q4164871 }
Francis Jeune, 1st Baron St Helier
action filter_type
action find
entity Francis Jeune, 1st Baron St Helier
relation noble title
type position
['Francis Jeune, 1st Baron St Helier', 'noble title', {'concept': 'position'}]
SELECT DISTINCT ?g WHERE { resource:Francis_Jeune,_1st_Baron_St_Helier property:noble_title ?g . ?g rdf:type ontology:position }
[]
position
Q165503
SYSTEM
baron
Q165503
(Q5481495,P97,c(Q4164871))
action filter_type
action find
entity Q5481495
relation P97
type Q4164871
Was [ANSWER] was held by that person
['Q5481495', 'P97', {'concept': 'Q4164871'}]
SELECT DISTINCT ?g WHERE { resource:Q5481495 property:P97 ?g . ?g rdf:type ontology:Q4164871 }
baron
Was baron was held by that person
baron
action filter_type
action find
entity Francis Jeune, 1st Baron St Helier
relation noble title
type position
['Francis Jeune, 1st Baron St Helier', 'noble title', {'concept': 'position'}]
SELECT DISTINCT ?g WHERE { resource:Francis_Jeune,_1st_Baron_St_Helier property:noble_title ?g . ?g rdf:type ontology:position }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5354244 Q5481495
P26
Q502895
USER
Which people are the spouses of Francis Jeune, 1st Baron St Helier or Eleanor Clark ?
OR((Q5481495,P26,c(Q502895)), (Q5354244,P26,c(Q502895)))
action filter_type
action union
action find
entity Q5481495
relation P26
action find
entity Q5354244
relation P26
type Q502895
{'OR': [['Q5481495', 'P26', {'concept': 'Q502895'}], ['Q5354244', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5481495 property:P26 ?l } UNION { resource:Q5354244 property:P26 ?l } } . ?l rdf:type ontology:Q502895 }
Eleanor Clark Francis Jeune, 1st Baron St Helier
action filter_type
action union
action find
entity Francis Jeune, 1st Baron St Helier
relation spouse
action find
entity Eleanor Clark
relation spouse
type common name
{'OR': [['Francis Jeune, 1st Baron St Helier', 'spouse', {'concept': 'common name'}], ['Eleanor Clark', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Francis_Jeune,_1st_Baron_St_Helier property:spouse ?l } UNION { resource:Eleanor_Clark property:spouse ?l } } . ?l rdf:type ontology:common_name }
[]
common name
Q7648032 Q312720
SYSTEM
Mary Jeune, Baroness St Helier, Robert Penn Warren
Q7648032 Q312720
OR((Q5481495,P26,c(Q502895)), (Q5354244,P26,c(Q502895)))
action filter_type
action union
action find
entity Q5481495
relation P26
action find
entity Q5354244
relation P26
type Q502895
[ANSWERS] are the spouses of Francis Jeune, 1st Baron St Helier or Eleanor Clark
{'OR': [['Q5481495', 'P26', {'concept': 'Q502895'}], ['Q5354244', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q5481495 property:P26 ?l } UNION { resource:Q5354244 property:P26 ?l } } . ?l rdf:type ontology:Q502895 }
Mary Jeune, Baroness St Helier Robert Penn Warren
Mary Jeune, Baroness St Helier and Robert Penn Warren are the spouses of Francis Jeune, 1st Baron St Helier or Eleanor Clark
Mary Jeune, Baroness St Helier Robert Penn Warren
action filter_type
action union
action find
entity Francis Jeune, 1st Baron St Helier
relation spouse
action find
entity Eleanor Clark
relation spouse
type common name
{'OR': [['Francis Jeune, 1st Baron St Helier', 'spouse', {'concept': 'common name'}], ['Eleanor Clark', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Francis_Jeune,_1st_Baron_St_Helier property:spouse ?l } UNION { resource:Eleanor_Clark property:spouse ?l } } . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1029
Q502895 Q20027951 Q12973014
USER
How many people are the team member of exactly 1 aircraft power classes or sports teams ?
(c(Q20027951)|c(Q12973014),P1029,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q12973014
value 1
[[{'concept': 'Q20027951'}, {'concept': 'Q12973014'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?z WHERE { { ?g rdf:type ontology:Q20027951 . ?z rdf:type ontology:Q502895 . ?g property:P1029 ?z } UNION { ?g property:P1029 ?z . ?z rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12973014 } } GROUP BY ?z } }
action count
action equal
action union
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
action find_reverse_tuple_counts
relation crew member
type common name
type sports team
value 1
[[{'concept': 'aircraft power class'}, {'concept': 'sports team'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?z WHERE { { ?g rdf:type ontology:aircraft_power_class . ?z rdf:type ontology:common_name . ?g property:crew_member ?z } UNION { ?g property:crew_member ?z . ?z rdf:type ontology:common_name . ?g rdf:type ontology:sports_team } } GROUP BY ?z } }
[]
common name aircraft power class sports team
SYSTEM
74
Q11813619 Q172001 Q257778 Q554538 Q61395 Q173190 Q362174 Q17541629 Q70928 Q18431930 Q78499 Q121797 Q82798 Q3183604 Q1400906 Q82864 Q1693251 Q1680121 Q445419 Q529119 Q15613580 Q171294 Q731751 Q115552 Q453542 Q23663985 Q82667 Q719413 Q4103224 Q116294 Q961419 Q977386 Q68329 Q70033 Q1361680 Q4252659 Q361113 Q172783 Q1448596 Q2093835 Q124809 Q578675 Q1914370 Q73081 Q616303 Q23664678 Q1853048 Q294555 Q17542124 Q3339766 Q247508 Q82901 Q85493 Q171310 Q1333070 Q3189408 Q23664692 Q17385517 Q23664385 Q2279606 Q1985717 Q466522 Q23664799 Q2050429 Q84178 Q977664 Q1872734 Q171302 Q172838 Q906626 Q64684 Q723989 Q171319 Q442910
(c(Q20027951)|c(Q12973014),P1029,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q12973014
value 1
[ANSWER]
[[{'concept': 'Q20027951'}, {'concept': 'Q12973014'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?z WHERE { { ?g rdf:type ontology:Q20027951 . ?z rdf:type ontology:Q502895 . ?g property:P1029 ?z } UNION { ?g property:P1029 ?z . ?z rdf:type ontology:Q502895 . ?g rdf:type ontology:Q12973014 } } GROUP BY ?z } }
Paul-Loup Chatin Tiago Monteiro Danny Watts Nicolas Minassian André Lotterer Gianmaria Bruni Ho-Pin Tung Vincent Capillaire Daniel Abt Matt Rao Alexander Wurz Mathias Beche Kamui Kobayashi Jonny Kane Tom Dillmann Bruno Senna Nick Tandy James Calado Andy Priaulx James Rossiter Gustavo Menezes Vitantonio Liuzzi Marino Franchitti Neel Jani Davide Rigon Billy Johnson Mark Webber David Heinemeier Hansson Theodore Van Kirk Marcel Fässler John Martin Roberto Merhi Stefan Mücke Marc Lieb Nathanaël Berthon Kirill Ladygin Brendon Hartley Lucas di Grassi Harry Tincknell Pierre Ragues Mathéo Tuscher Benoît Tréluyer Oliver Webb Pierre Kaffer Stéphane Richelmi Chris Cumming Michael Christensen Paul Tibbets Viktor Shaitar Nick Leventis Marco Bonanomi Vitaly Petrov Richard Lietz Sébastien Buemi Oliver Jarvis Julien Canal David Cheng Matthew Howson Maurizio Mediani Jon Fogarty Nicki Thiim Gustavo Yacamán Yutaka Yamagishi Paolo Ruberti Christian Klien Marco Sørensen Loïc Duval Kazuki Nakajima Nelson Piquet Jr. Romain Dumas Timo Bernhard Tsugio Matsuda Anthony Davidson Darren Turner
74
action count
action equal
action union
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
action find_reverse_tuple_counts
relation crew member
type common name
type sports team
value 1
[[{'concept': 'aircraft power class'}, {'concept': 'sports team'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?z WHERE { { ?g rdf:type ontology:aircraft_power_class . ?z rdf:type ontology:common_name . ?g property:crew_member ?z } UNION { ?g property:crew_member ?z . ?z rdf:type ontology:common_name . ?g rdf:type ontology:sports_team } } GROUP BY ?z } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q5354244
P26 P21
Q502895
USER
Which people have Eleanor Clark as spouse and have the gender as male ?
AND((c(Q502895),P26,Q5354244), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5354244
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q5354244'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P21 resource:Q6581097 . ?q property:P26 resource:Q5354244 . ?q rdf:type ontology:Q502895 }
male Eleanor Clark
action filter_type
action intersection
action find_reverse
entity Eleanor Clark
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Eleanor Clark'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:gender resource:male . ?q property:spouse resource:Eleanor_Clark . ?q rdf:type ontology:common_name }
[]
common name
Q312720
SYSTEM
Robert Penn Warren
Q312720
AND((c(Q502895),P26,Q5354244), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5354244
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Eleanor Clark as spouse and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q5354244'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P21 resource:Q6581097 . ?q property:P26 resource:Q5354244 . ?q rdf:type ontology:Q502895 }
Robert Penn Warren
Robert Penn Warren have Eleanor Clark as spouse and have the gender as male
Robert Penn Warren
action filter_type
action intersection
action find_reverse
entity Eleanor Clark
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Eleanor Clark'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:gender resource:male . ?q property:spouse resource:Eleanor_Clark . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q312720 Q533995 Q30
P27
Q15617994
USER
Is that person a native of Unterwaldhausen and United States of America ?
(Q312720,P27,Q533995) (Q312720,P27,Q30)
action is_in
entity Q312720
action intersection
action find_reverse
entity Q533995
relation P27
action find_reverse
entity Q30
relation P27
['Q312720', 'P27', 'Q533995'] ['Q312720', 'P27', 'Q30']
ASK WHERE { resource:Q312720 property:P27 resource:Q533995 . resource:Q312720 property:P27 resource:Q30 }
Robert Penn Warren Unterwaldhausen United States of America
action is_in
entity Robert Penn Warren
action intersection
action find_reverse
entity Unterwaldhausen
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['Robert Penn Warren', 'country of citizenship', 'Unterwaldhausen'] ['Robert Penn Warren', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Robert_Penn_Warren property:country_of_citizenship resource:Unterwaldhausen . resource:Robert_Penn_Warren property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q312720,P27,Q533995) (Q312720,P27,Q30)
action is_in
entity Q312720
action intersection
action find_reverse
entity Q533995
relation P27
action find_reverse
entity Q30
relation P27
[ANSWER]
['Q312720', 'P27', 'Q533995'] ['Q312720', 'P27', 'Q30']
ASK WHERE { resource:Q312720 property:P27 resource:Q533995 . resource:Q312720 property:P27 resource:Q30 }
NO and YES respectively
action is_in
entity Robert Penn Warren
action intersection
action find_reverse
entity Unterwaldhausen
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['Robert Penn Warren', 'country of citizenship', 'Unterwaldhausen'] ['Robert Penn Warren', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Robert_Penn_Warren property:country_of_citizenship resource:Unterwaldhausen . resource:Robert_Penn_Warren property:country_of_citizenship resource:United_States_of_America }
[]