Simple Question (Direct)
Simple Question
Q24001915
P2416
Q31629
USER
What did Neely Spence Gracey participate in ?
(Q24001915,P2416,c(Q31629))
action filter_type
action find
entity Q24001915
relation P2416
type Q31629
['Q24001915', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q31629 . resource:Q24001915 property:P2416 ?p }
Neely Spence Gracey
action filter_type
action find
entity Neely Spence Gracey
relation sports discipline competed in
type type of sport
['Neely Spence Gracey', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_sport . resource:Neely_Spence_Gracey property:sports_discipline_competed_in ?p }
[]
type of sport
Q163892 Q40244
SYSTEM
10,000 metres, marathon
Q163892 Q40244
(Q24001915,P2416,c(Q31629))
action filter_type
action find
entity Q24001915
relation P2416
type Q31629
Neely Spence Gracey participated in [ANSWERS]
['Q24001915', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q31629 . resource:Q24001915 property:P2416 ?p }
10,000 metres marathon
Neely Spence Gracey participated in 10,000 metres and marathon
10,000 metres marathon
action filter_type
action find
entity Neely Spence Gracey
relation sports discipline competed in
type type of sport
['Neely Spence Gracey', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_sport . resource:Neely_Spence_Gracey property:sports_discipline_competed_in ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q24001915
P1532
Q15617994
USER
Which administrative territory is represented by Neely Spence Gracey ?
(Q24001915,P1532,c(Q15617994))
action filter_type
action find
entity Q24001915
relation P1532
type Q15617994
['Q24001915', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q24001915 property:P1532 ?r }
Neely Spence Gracey
action filter_type
action find
entity Neely Spence Gracey
relation country for sport
type designation for an administrative territorial entity
['Neely Spence Gracey', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Neely_Spence_Gracey property:country_for_sport ?r }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q24001915,P1532,c(Q15617994))
action filter_type
action find
entity Q24001915
relation P1532
type Q15617994
Is [ANSWER] is represented by Neely Spence Gracey
['Q24001915', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q24001915 property:P1532 ?r }
United States of America
Is United States of America is represented by Neely Spence Gracey
United States of America
action filter_type
action find
entity Neely Spence Gracey
relation country for sport
type designation for an administrative territorial entity
['Neely Spence Gracey', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Neely_Spence_Gracey property:country_for_sport ?r }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1444
Q79007 Q20667921 Q31629
USER
Which types of sport finally halts at max number of streets or french administrative divisions ?
(c(Q31629),P1444,c(Q79007)|c(Q20667921))
action argmax
action union
action find_tuple_counts
relation P1444
type Q31629
type Q79007
action find_tuple_counts
relation P1444
type Q31629
type Q20667921
[{'concept': 'Q31629'}, 'P1444', [{'concept': 'Q79007'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?n WHERE { FILTER ( ?v = ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:Q79007 ) ( ontology:Q20667921 ) } . ?e rdf:type ?i } GROUP BY ?n } . { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?d ) WHERE { { ?j property:P1444 ?q . ?q rdf:type ontology:Q79007 . ?j rdf:type ontology:Q31629 } UNION { ?j property:P1444 ?q . ?j rdf:type ontology:Q31629 . ?q rdf:type ontology:Q20667921 } } GROUP BY ?j } } }
action argmax
action union
action find_tuple_counts
relation destination point
type type of sport
type street
action find_tuple_counts
relation destination point
type type of sport
type type of french administrative division
[{'concept': 'type of sport'}, 'destination point', [{'concept': 'street'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?n WHERE { FILTER ( ?v = ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:street ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?i } GROUP BY ?n } . { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?d ) WHERE { { ?j property:destination_point ?q . ?q rdf:type ontology:street . ?j rdf:type ontology:type_of_sport } UNION { ?j property:destination_point ?q . ?j rdf:type ontology:type_of_sport . ?q rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?j } } }
[]
street type of french administrative division type of sport
Q21155400 Q21155399 Q21155395
SYSTEM
2016 Tour de France, Stage 15, 2016 Tour de France, Stage 14, 2016 Tour de France, Stage 10
Q19946556 Q19946559 Q2807503 Q22582739 Q22582738 Q19944928 Q19920830 Q19920831 Q23000035 Q23000036 Q23000037 Q23000038 Q21755419 Q21755418 Q21755417 Q21755416 Q21571740 Q21768449 Q21768445 Q21768446 Q21768447 Q19946557 Q23535605 Q23535601 Q19946577 Q19946573 Q21155400 Q21155406 Q21155404 Q21155405 Q22812469 Q22812468 Q23535586 Q23535582 Q20738925 Q20738921 Q19946534 Q23498320 Q21155192 Q23498317 Q23498318 Q26885344 Q21155399 Q21155395 Q26885403 Q26885401 Q19946561 Q19946564 Q19946565 Q23498321 Q23498323 Q23498322 Q23535590 Q23535594 Q23535597 Q24265079 Q26883403 Q21074504 Q19946558 Q21571738 Q21571739 Q21571736 Q21571737 Q22677341 Q22677340 Q26897389 Q21155349 Q21155343 Q19920829 Q26883441 Q19951541 Q21755420 Q22670412 Q22670411 Q22681040 Q20823513 Q20823512 Q20823511 Q20823510 Q20823514 Q21768450 Q22582742 Q22582740 Q22582741
(c(Q31629),P1444,c(Q79007)|c(Q20667921))
action argmax
action union
action find_tuple_counts
relation P1444
type Q31629
type Q79007
action find_tuple_counts
relation P1444
type Q31629
type Q20667921
[ANSWERS]
[{'concept': 'Q31629'}, 'P1444', [{'concept': 'Q79007'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?n WHERE { FILTER ( ?v = ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:Q79007 ) ( ontology:Q20667921 ) } . ?e rdf:type ?i } GROUP BY ?n } . { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?d ) WHERE { { ?j property:P1444 ?q . ?q rdf:type ontology:Q79007 . ?j rdf:type ontology:Q31629 } UNION { ?j property:P1444 ?q . ?j rdf:type ontology:Q31629 . ?q rdf:type ontology:Q20667921 } } GROUP BY ?j } } }
2015 Tour de France, Stage 16 2015 Tour de France, Stage 13 1995 Tour de France, Stage 12 2016 Étoile de Bessèges, Stage 2 2016 Étoile de Bessèges, Stage 1 2015 Tour de France, Stage 21 2015 Paris-Arras Tour, Stage 2 2015 Paris-Arras Tour, Stage 3 2016 Tour du Limousin, Stage 2 2016 Tour du Limousin, Stage 4 2016 Tour du Limousin, Stage 1 2016 Tour du Limousin, Stage 3 2014 Tour de l'Ain, Stage 3 2014 Tour de l'Ain, Stage 2 2014 Tour de l'Ain, Stage 1 2014 Tour de l'Ain, Prologue 2016 Four Days of Dunkirk, Stage 5 2016 Paris–Nice, Stage 4 2016 Paris–Nice, Prologue 2016 Paris–Nice, Stage 1 2016 Paris–Nice, Stage 2 2015 Tour de France, Stage 15 2016 Tour de Normandie, Stage 6 2016 Tour de Normandie, Stage 5 2015 Tour de France, Stage 4 2015 Tour de France, Stage 7 2016 Tour de France, Stage 15 2016 Tour de France, Stage 20 2016 Tour de France, Stage 18 2016 Tour de France, Stage 19 2016 Tour du Haut Var, Stage 2 2016 Tour du Haut Var, Stage 1 2016 Tour de Normandie, Stage 1 2016 Tour de Normandie, Prologue 2016 Tour de France, Stage 3 2016 Tour de France, Stage 2 2015 Tour de France, Stage 18 2016 Critérium du Dauphiné, Stage 2 2016 Tour de France, Stage 4 2016 Critérium du Dauphiné, Prologue 2016 Critérium du Dauphiné, Stage 1 2016 European Road Championships – Men's U23 time trial 2016 Tour de France, Stage 14 2016 Tour de France, Stage 10 2016 European Road Championships – Men's elite time trial 2016 European Road Championships – Women's elite time trial 2015 Tour de France, Stage 11 2015 Tour de France, Stage 9 2015 Tour de France, Stage 8 2016 Critérium du Dauphiné, Stage 3 2016 Critérium du Dauphiné, Stage 5 2016 Critérium du Dauphiné, Stage 4 2016 Tour de Normandie, Stage 2 2016 Tour de Normandie, Stage 3 2016 Tour de Normandie, Stage 4 1st Stage 2016 Circuit de la Sarthe 2016 European Road Championships – Women's junior time trial 2016 Giro d'Italia, Stage 19 2015 Tour de France, Stage 14 2016 Four Days of Dunkirk, Stage 3 2016 Four Days of Dunkirk, Stage 4 2016 Four Days of Dunkirk, Stage 1 2016 Four Days of Dunkirk, Stage 2 2016 Tour La Provence, Stage 2 2016 Tour La Provence, Stage 1 2016 European Road Championships – Women's U23 time trial 2016 Tour de France, Stage 8 2016 Tour de France, Stage 6 2015 Paris-Arras Tour, Stage 1 2016 European Road Championships – Men's junior time trial 2015 Tour de France, Stage 19 2014 Tour de l'Ain, Stage 4 2016 La Méditerranéenne, Stage 3 2016 La Méditerranéenne, Stage 2 2017 Tour de France, Stage 21 2015 Tour de l'Ain, Stage 3 2015 Tour de l'Ain, Stage 2 2015 Tour de l'Ain, Stage 1 2015 Tour de l'Ain, Prologue 2015 Tour de l'Ain, Stage 4 2016 Paris–Nice, Stage 5 2016 Étoile de Bessèges, Stage 5 2016 Étoile de Bessèges, Stage 3 2016 Étoile de Bessèges, Stage 4
2016 Tour de France, Stage 15, 2016 Tour de France, Stage 14 and 2016 Tour de France, Stage 10 finally halter at max number of streets or french administrative divisions
2016 Tour de France, Stage 15 2016 Tour de France, Stage 14 2016 Tour de France, Stage 10
action argmax
action union
action find_tuple_counts
relation destination point
type type of sport
type street
action find_tuple_counts
relation destination point
type type of sport
type type of french administrative division
[{'concept': 'type of sport'}, 'destination point', [{'concept': 'street'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?n WHERE { FILTER ( ?v = ?z ) . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:street ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?i } GROUP BY ?n } . { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?d ) WHERE { { ?j property:destination_point ?q . ?q rdf:type ontology:street . ?j rdf:type ontology:type_of_sport } UNION { ?j property:destination_point ?q . ?j rdf:type ontology:type_of_sport . ?q rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?j } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3404523 Q21155395
P1346
Q502895
USER
Which people were the winners of 2016 Tour de France, Stage 10 or David di Donatello for Best Foreign Actor ?
OR((Q21155395,P1346,c(Q502895)), (Q3404523,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q21155395
relation P1346
action find
entity Q3404523
relation P1346
type Q502895
{'OR': [['Q21155395', 'P1346', {'concept': 'Q502895'}], ['Q3404523', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q21155395 property:P1346 ?j } UNION { resource:Q3404523 property:P1346 ?j } } . ?j rdf:type ontology:Q502895 }
David di Donatello for Best Foreign Actor 2016 Tour de France, Stage 10
action filter_type
action union
action find
entity 2016 Tour de France, Stage 10
relation winner
action find
entity David di Donatello for Best Foreign Actor
relation winner
type common name
{'OR': [['2016 Tour de France, Stage 10', 'winner', {'concept': 'common name'}], ['David di Donatello for Best Foreign Actor', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { { { resource:2016_Tour_de_France,_Stage_10 property:winner ?j } UNION { resource:David_di_Donatello_for_Best_Foreign_Actor property:winner ?j } } . ?j rdf:type ontology:common_name }
[]
common name
Q78533 Q160528 Q181887 Q181799 Q561546 Q108366 Q181819 Q309911 Q105825 Q40026
SYSTEM
Some of them are Klaus Maria Brandauer, Burt Lancaster, Rex Harrison, Richard Dreyfuss, Michael Matthews, Gregory Peck, Fredric March, Peter Sagan, William Hurt, Sylvester Stallone
Q202172 Q273215 Q561546 Q523444 Q48410 Q119798 Q23842 Q191132 Q83410 Q41163 Q318088 Q71275 Q42930 Q244234 Q171745 Q94123 Q181887 Q78533 Q319133 Q39792 Q40026 Q319591 Q460872 Q333351 Q80739 Q106057 Q315039 Q59215 Q181799 Q181819 Q309911 Q106482 Q41871 Q160528 Q55264 Q193146 Q55245 Q106303 Q151973 Q34012 Q15041743 Q105825 Q95030 Q108366 Q103876 Q272923 Q118116 Q80938 Q65932 Q25089
OR((Q21155395,P1346,c(Q502895)), (Q3404523,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q21155395
relation P1346
action find
entity Q3404523
relation P1346
type Q502895
[ANSWERS] were the winners of 2016 Tour de France, Stage 10 or David di Donatello for Best Foreign Actor
{'OR': [['Q21155395', 'P1346', {'concept': 'Q502895'}], ['Q3404523', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q21155395 property:P1346 ?j } UNION { resource:Q3404523 property:P1346 ?j } } . ?j rdf:type ontology:Q502895 }
Walter Matthau Rod Steiger Michael Matthews Daniel Martin Richard Gere Michael Douglas Jean Gabin Harvey Keitel Cary Grant Al Pacino Michel Serrault Spencer Tracy Dustin Hoffman John Turturro Jeremy Irons Jack Lemmon Rex Harrison Klaus Maria Brandauer Chaim Topol Jack Nicholson Sylvester Stallone Chris Froome Thibaut Pinot Edvald Boasson Hagen Charlton Heston Yves Montand Tom Hulce Robert Redford Richard Dreyfuss Fredric March Peter Sagan Philippe Noiret Paul Newman Burt Lancaster Charles Laughton Anthony Perkins Laurence Olivier Daniel Auteuil Richard Burton Marlon Brando Adam Yates William Hurt Warren Beatty Gregory Peck Peter O'Toole Ryan O'Neal Dexter Gordon John Travolta Anthony Hopkins Woody Allen
Klaus Maria Brandauer, Burt Lancaster, Rex Harrison, Richard Dreyfuss, Michael Matthews, Gregory Peck, Fredric March, Peter Sagan, William Hurt and Sylvester Stallone were the winners of 2016 Tour de France, Stage 10 or David di Donatello for Best Foreign Actor
Klaus Maria Brandauer Burt Lancaster Rex Harrison Richard Dreyfuss Michael Matthews Gregory Peck Fredric March Peter Sagan William Hurt Sylvester Stallone
action filter_type
action union
action find
entity 2016 Tour de France, Stage 10
relation winner
action find
entity David di Donatello for Best Foreign Actor
relation winner
type common name
{'OR': [['2016 Tour de France, Stage 10', 'winner', {'concept': 'common name'}], ['David di Donatello for Best Foreign Actor', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { { { resource:2016_Tour_de_France,_Stage_10 property:winner ?j } UNION { resource:David_di_Donatello_for_Best_Foreign_Actor property:winner ?j } } . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1381420
P641
Q349
USER
Which sport did Leonardo Lavalle participate in ?
(Q1381420,P641,c(Q349))
action filter_type
action find
entity Q1381420
relation P641
type Q349
['Q1381420', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q1381420 property:P641 ?i . ?i rdf:type ontology:Q349 }
Leonardo Lavalle
action filter_type
action find
entity Leonardo Lavalle
relation sport
type sport
['Leonardo Lavalle', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Leonardo_Lavalle property:sport ?i . ?i rdf:type ontology:sport }
[]
sport
Q847
SYSTEM
tennis
Q847
(Q1381420,P641,c(Q349))
action filter_type
action find
entity Q1381420
relation P641
type Q349
Leonardo Lavalle participated in [ANSWER]
['Q1381420', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q1381420 property:P641 ?i . ?i rdf:type ontology:Q349 }
tennis
Leonardo Lavalle participated in tennis
tennis
action filter_type
action find
entity Leonardo Lavalle
relation sport
type sport
['Leonardo Lavalle', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Leonardo_Lavalle property:sport ?i . ?i rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q847 Q4584717
P641
Q500834
USER
Does 1988 Stockholm Open – Singles play that sport ?
(Q4584717,P641,Q847)
action is_in
entity Q4584717
action find
entity Q847
relation P641
['Q4584717', 'P641', 'Q847']
ASK WHERE { resource:Q847 property:P641 resource:Q4584717 }
tennis 1988 Stockholm Open – Singles
action is_in
entity 1988 Stockholm Open – Singles
action find
entity tennis
relation sport
['1988 Stockholm Open – Singles', 'sport', 'tennis']
ASK WHERE { resource:tennis property:sport resource:1988_Stockholm_Open_–_Singles }
[]
tournament
SYSTEM
NO
(Q4584717,P641,Q847)
action is_in
entity Q4584717
action find
entity Q847
relation P641
[ANSWER]
['Q4584717', 'P641', 'Q847']
ASK WHERE { resource:Q847 property:P641 resource:Q4584717 }
No
action is_in
entity 1988 Stockholm Open – Singles
action find
entity tennis
relation sport
['1988 Stockholm Open – Singles', 'sport', 'tennis']
ASK WHERE { resource:tennis property:sport resource:1988_Stockholm_Open_–_Singles }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q24001915 Q390699 Q8047095
P27
Q15617994
USER
Is Neely Spence Gracey a civilian of Erula and Yakima School District ?
(Q24001915,P27,Q390699) (Q24001915,P27,Q8047095)
action is_in
entity Q24001915
action intersection
action find_reverse
entity Q390699
relation P27
action find_reverse
entity Q8047095
relation P27
['Q24001915', 'P27', 'Q390699'] ['Q24001915', 'P27', 'Q8047095']
ASK WHERE { resource:Q24001915 property:P27 resource:Q390699 . resource:Q24001915 property:P27 resource:Q8047095 }
Neely Spence Gracey Erula Yakima School District
action is_in
entity Neely Spence Gracey
action intersection
action find_reverse
entity Erula
relation country of citizenship
action find_reverse
entity Yakima School District
relation country of citizenship
['Neely Spence Gracey', 'country of citizenship', 'Erula'] ['Neely Spence Gracey', 'country of citizenship', 'Yakima School District']
ASK WHERE { resource:Neely_Spence_Gracey property:country_of_citizenship resource:Erula . resource:Neely_Spence_Gracey property:country_of_citizenship resource:Yakima_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q24001915,P27,Q390699) (Q24001915,P27,Q8047095)
action is_in
entity Q24001915
action intersection
action find_reverse
entity Q390699
relation P27
action find_reverse
entity Q8047095
relation P27
[ANSWER]
['Q24001915', 'P27', 'Q390699'] ['Q24001915', 'P27', 'Q8047095']
ASK WHERE { resource:Q24001915 property:P27 resource:Q390699 . resource:Q24001915 property:P27 resource:Q8047095 }
No
action is_in
entity Neely Spence Gracey
action intersection
action find_reverse
entity Erula
relation country of citizenship
action find_reverse
entity Yakima School District
relation country of citizenship
['Neely Spence Gracey', 'country of citizenship', 'Erula'] ['Neely Spence Gracey', 'country of citizenship', 'Yakima School District']
ASK WHERE { resource:Neely_Spence_Gracey property:country_of_citizenship resource:Erula . resource:Neely_Spence_Gracey property:country_of_citizenship resource:Yakima_School_District }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q108366 Q1534911
P166
Q4220917
USER
Was Gregory Peck awarded with Henrietta Award ?
(Q108366,P166,Q1534911)
action is_in
entity Q1534911
action find
entity Q108366
relation P166
['Q108366', 'P166', 'Q1534911']
ASK WHERE { resource:Q108366 property:P166 resource:Q1534911 }
Gregory Peck Henrietta Award
action is_in
entity Henrietta Award
action find
entity Gregory Peck
relation award received
['Gregory Peck', 'award received', 'Henrietta Award']
ASK WHERE { resource:Gregory_Peck property:award_received resource:Henrietta_Award }
[]
film award
SYSTEM
YES
(Q108366,P166,Q1534911)
action is_in
entity Q1534911
action find
entity Q108366
relation P166
[ANSWER]
['Q108366', 'P166', 'Q1534911']
ASK WHERE { resource:Q108366 property:P166 resource:Q1534911 }
Yes
action is_in
entity Henrietta Award
action find
entity Gregory Peck
relation award received
['Gregory Peck', 'award received', 'Henrietta Award']
ASK WHERE { resource:Gregory_Peck property:award_received resource:Henrietta_Award }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q108366
P106
Q28640 Q12737077
USER
How many professions or occupations do Gregory Peck do for a living ?
(Q108366,P106,c(Q28640)) (Q108366,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q108366
relation P106
type Q28640
action filter_type
action find
entity Q108366
relation P106
type Q12737077
['Q108366', 'P106', {'concept': 'Q28640'}] ['Q108366', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { resource:Q108366 property:P106 ?r . ?r rdf:type ontology:Q28640 } UNION { resource:Q108366 property:P106 ?r . ?r rdf:type ontology:Q12737077 } }
Gregory Peck
action count
action union
action filter_type
action find
entity Gregory Peck
relation occupation
type profession
action filter_type
action find
entity Gregory Peck
relation occupation
type occupation
['Gregory Peck', 'occupation', {'concept': 'profession'}] ['Gregory Peck', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { resource:Gregory_Peck property:occupation ?r . ?r rdf:type ontology:profession } UNION { resource:Gregory_Peck property:occupation ?r . ?r rdf:type ontology:occupation } }
[]
profession occupation
SYSTEM
5
Q33999 Q10800557 Q3282637 Q948329 Q2259451
(Q108366,P106,c(Q28640)) (Q108366,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q108366
relation P106
type Q28640
action filter_type
action find
entity Q108366
relation P106
type Q12737077
[ANSWER]
['Q108366', 'P106', {'concept': 'Q28640'}] ['Q108366', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { resource:Q108366 property:P106 ?r . ?r rdf:type ontology:Q28640 } UNION { resource:Q108366 property:P106 ?r . ?r rdf:type ontology:Q12737077 } }
actor film actor film producer character actor stage actor
5
action count
action union
action filter_type
action find
entity Gregory Peck
relation occupation
type profession
action filter_type
action find
entity Gregory Peck
relation occupation
type occupation
['Gregory Peck', 'occupation', {'concept': 'profession'}] ['Gregory Peck', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?x ) WHERE { { resource:Gregory_Peck property:occupation ?r . ?r rdf:type ontology:profession } UNION { resource:Gregory_Peck property:occupation ?r . ?r rdf:type ontology:occupation } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40026
P7
Q502895
USER
Who is the brother of Sylvester Stallone ?
(Q40026,P7,c(Q502895))
action filter_type
action find
entity Q40026
relation P7
type Q502895
['Q40026', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q40026 property:P7 ?h . ?h rdf:type ontology:Q502895 }
Sylvester Stallone
action filter_type
action find
entity Sylvester Stallone
relation brother
type common name
['Sylvester Stallone', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Sylvester_Stallone property:brother ?h . ?h rdf:type ontology:common_name }
[]
common name
Q959153
SYSTEM
Frank Stallone
Q959153
(Q40026,P7,c(Q502895))
action filter_type
action find
entity Q40026
relation P7
type Q502895
The brother of Sylvester Stallone is named [ANSWER]
['Q40026', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q40026 property:P7 ?h . ?h rdf:type ontology:Q502895 }
Frank Stallone
The brother of Sylvester Stallone is named Frank Stallone
Frank Stallone
action filter_type
action find
entity Sylvester Stallone
relation brother
type common name
['Sylvester Stallone', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Sylvester_Stallone property:brother ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q40026
P25
Q502895
USER
Who was the mother of Sylvester Stallone ?
(Q40026,P25,c(Q502895))
action filter_type
action find
entity Q40026
relation P25
type Q502895
['Q40026', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q40026 property:P25 ?c }
Sylvester Stallone
action filter_type
action find
entity Sylvester Stallone
relation mother
type common name
['Sylvester Stallone', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Sylvester_Stallone property:mother ?c }
[]
common name
Q2361659
SYSTEM
Jackie Stallone
Q2361659
(Q40026,P25,c(Q502895))
action filter_type
action find
entity Q40026
relation P25
type Q502895
The mother of Sylvester Stallone was named [ANSWER]
['Q40026', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q40026 property:P25 ?c }
Jackie Stallone
The mother of Sylvester Stallone was named Jackie Stallone
Jackie Stallone
action filter_type
action find
entity Sylvester Stallone
relation mother
type common name
['Sylvester Stallone', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Sylvester_Stallone property:mother ?c }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7369212 Q40026
P25 P7
Q502895
USER
Which people were the mom of Sylvester Stallone or are the brother of Princess Dunke of the Second Rank ?
OR((Q40026,P25,c(Q502895)), (Q7369212,P7,c(Q502895)))
action filter_type
action union
action find
entity Q40026
relation P25
action find
entity Q7369212
relation P7
type Q502895
{'OR': [['Q40026', 'P25', {'concept': 'Q502895'}], ['Q7369212', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q7369212 property:P7 ?h } UNION { resource:Q40026 property:P25 ?h } } . ?h rdf:type ontology:Q502895 }
Princess Dunke of the Second Rank Sylvester Stallone
action filter_type
action union
action find
entity Sylvester Stallone
relation mother
action find
entity Princess Dunke of the Second Rank
relation brother
type common name
{'OR': [['Sylvester Stallone', 'mother', {'concept': 'common name'}], ['Princess Dunke of the Second Rank', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Princess_Dunke_of_the_Second_Rank property:brother ?h } UNION { resource:Sylvester_Stallone property:mother ?h } } . ?h rdf:type ontology:common_name }
[]
common name
Q2361659 Q7356509 Q7361796 Q7360943 Q7357341 Q7355646 Q6853955 Q4260394 Q7361377 Q7358635
SYSTEM
Some of them are Jackie Stallone, Changsheng, Yinqi, Yinji, Wanpu, Yunzhi, Prince Zhi, Yinzhuo, Yunzhi, Prince Cheng, Yinlu, Yinyou
Q7360943 Q7361819 Q7361731 Q7357341 Q7359943 Q7361777 Q7359757 Q7355099 Q2361659 Q7358635 Q7359299 Q831169 Q7358028 Q7355425 Q3375172 Q7361377 Q7361681 Q7355646 Q7359492 Q6853955 Q317839 Q7361552 Q7356509 Q7355911 Q7361708 Q7359660 Q1076775 Q4260294 Q7361115 Q4260394 Q7361874 Q7361717 Q7357918 Q7361796 Q7355310 Q7355554
OR((Q40026,P25,c(Q502895)), (Q7369212,P7,c(Q502895)))
action filter_type
action union
action find
entity Q40026
relation P25
action find
entity Q7369212
relation P7
type Q502895
[ANSWERS] were the mom of Sylvester Stallone or are the brother of Princess Dunke of the Second Rank
{'OR': [['Q40026', 'P25', {'concept': 'Q502895'}], ['Q7369212', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q7369212 property:P7 ?h } UNION { resource:Q40026 property:P25 ?h } } . ?h rdf:type ontology:Q502895 }
Yinji Yinmi Yinxi Wanpu Yintao Yinhu Yinzi Chengrui Jackie Stallone Yinyou Yuntang Yinxiang Yinqi Chengqing Yunti Yinlu Yinxie Yunzhi, Prince Zhi Yin’e Yinzhuo Yongzheng Emperor Yunli Changsheng Changhua Yinji Yinju Yunreng Yunsi Yinwu Yunzhi, Prince Cheng Yinyuan Yinyi Yinzan Yinqi Chenghu Sayinchahun
Jackie Stallone, Changsheng, Yinqi, Yinji, Wanpu, Yunzhi, Prince Zhi, Yinzhuo, Yunzhi, Prince Cheng, Yinlu and Yinyou were the mom of Sylvester Stallone or are the brother of Princess Dunke of the Second Rank
Jackie Stallone Changsheng Yinqi Yinji Wanpu Yunzhi, Prince Zhi Yinzhuo Yunzhi, Prince Cheng Yinlu Yinyou
action filter_type
action union
action find
entity Sylvester Stallone
relation mother
action find
entity Princess Dunke of the Second Rank
relation brother
type common name
{'OR': [['Sylvester Stallone', 'mother', {'concept': 'common name'}], ['Princess Dunke of the Second Rank', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Princess_Dunke_of_the_Second_Rank property:brother ?h } UNION { resource:Sylvester_Stallone property:mother ?h } } . ?h rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7361796
P40
Q502895
USER
Which person has that one as an offspring ?
(c(Q502895),P40,Q7361796)
action filter_type
action find_reverse
entity Q7361796
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q7361796']
SELECT DISTINCT ?d WHERE { ?d property:P40 resource:Q7361796 . ?d rdf:type ontology:Q502895 }
Yinqi
action filter_type
action find_reverse
entity Yinqi
relation child
type common name
[{'concept': 'common name'}, 'child', 'Yinqi']
SELECT DISTINCT ?d WHERE { ?d property:child resource:Yinqi . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q7361796
SYSTEM
Did you mean Yinqi ?
Q2361659 Q7356509 Q7361796 Q7360943 Q7357341 Q7355646 Q6853955 Q4260394 Q7361377 Q7358635
(c(Q502895),P40,Q2361659) (c(Q502895),P40,Q7356509) (c(Q502895),P40,Q7361796) (c(Q502895),P40,Q7360943) (c(Q502895),P40,Q7357341) (c(Q502895),P40,Q7355646) (c(Q502895),P40,Q6853955) (c(Q502895),P40,Q4260394) (c(Q502895),P40,Q7361377) (c(Q502895),P40,Q7358635)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q2361659'] [{'concept': 'Q502895'}, 'P40', 'Q7356509'] [{'concept': 'Q502895'}, 'P40', 'Q7361796'] [{'concept': 'Q502895'}, 'P40', 'Q7360943'] [{'concept': 'Q502895'}, 'P40', 'Q7357341'] [{'concept': 'Q502895'}, 'P40', 'Q7355646'] [{'concept': 'Q502895'}, 'P40', 'Q6853955'] [{'concept': 'Q502895'}, 'P40', 'Q4260394'] [{'concept': 'Q502895'}, 'P40', 'Q7361377'] [{'concept': 'Q502895'}, 'P40', 'Q7358635']
SELECT DISTINCT ?d WHERE { ?d property:P40 resource:Q7361796 . ?d rdf:type ontology:Q502895 }
Jackie Stallone Changsheng Yinqi Yinji Wanpu Yunzhi, Prince Zhi Yinzhuo Yunzhi, Prince Cheng Yinlu Yinyou
Did you mean Yinqi ?
Yinqi
[{'concept': 'common name'}, 'child', 'Jackie Stallone'] [{'concept': 'common name'}, 'child', 'Changsheng'] [{'concept': 'common name'}, 'child', 'Yinqi'] [{'concept': 'common name'}, 'child', 'Yinji'] [{'concept': 'common name'}, 'child', 'Wanpu'] [{'concept': 'common name'}, 'child', 'Yunzhi, Prince Zhi'] [{'concept': 'common name'}, 'child', 'Yinzhuo'] [{'concept': 'common name'}, 'child', 'Yunzhi, Prince Cheng'] [{'concept': 'common name'}, 'child', 'Yinlu'] [{'concept': 'common name'}, 'child', 'Yinyou']
SELECT DISTINCT ?d WHERE { ?d property:child resource:Yinqi . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P40,Q7361796)
[{'concept': 'Q502895'}, 'P40', 'Q7361796']
[{'concept': 'common name'}, 'child', 'Yinqi']
[]
Q17790
SYSTEM
Kangxi Emperor
Q17790
(c(Q502895),P40,Q7361796)
action filter_type
action find_reverse
entity Q7361796
relation P40
type Q502895
[ANSWER] has that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q7361796']
SELECT DISTINCT ?d WHERE { ?d property:P40 resource:Q7361796 . ?d rdf:type ontology:Q502895 }
Kangxi Emperor
Kangxi Emperor has that one as an offspring
Kangxi Emperor
action filter_type
action find_reverse
entity Yinqi
relation child
type common name
[{'concept': 'common name'}, 'child', 'Yinqi']
SELECT DISTINCT ?d WHERE { ?d property:child resource:Yinqi . ?d rdf:type ontology:common_name }
[]