Simple Question (Direct)
Simple Question
Q17426806
P734
Q82799
USER
Who has the surname Jean Pons ?
(Q17426806,P734,c(Q82799))
action filter_type
action find
entity Q17426806
relation P734
type Q82799
['Q17426806', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q17426806 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Jean Pons
action filter_type
action find
entity Jean Pons
relation family name
type name
['Jean Pons', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Jean_Pons property:family_name ?e . ?e rdf:type ontology:name }
[]
name
Q21506833
SYSTEM
Pons
Q21506833
(Q17426806,P734,c(Q82799))
action filter_type
action find
entity Q17426806
relation P734
type Q82799
[ANSWER] has the surname Jean [ANSWER]
['Q17426806', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { resource:Q17426806 property:P734 ?e . ?e rdf:type ontology:Q82799 }
Pons
Pons has the surname Jean Pons
Pons
action filter_type
action find
entity Jean Pons
relation family name
type name
['Jean Pons', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { resource:Jean_Pons property:family_name ?e . ?e rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P35
Q502895 Q35798 Q1048835
USER
Which people are the heads of state of max number of executive branches or political territories ?
(c(Q35798)|c(Q1048835),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
[[{'concept': 'Q35798'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?g = ?p ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?k WHERE { VALUES ( ?s ) { ( ontology:Q35798 ) ( ontology:Q1048835 ) } . ?e rdf:type ?s } GROUP BY ?k } . { SELECT DISTINCT ( MAX ( ?w ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) ?z WHERE { VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q35798 ) } . ?b rdf:type ?n } GROUP BY ?z } } }
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
[[{'concept': 'executive branch'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?g = ?p ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?k WHERE { VALUES ( ?s ) { ( ontology:executive_branch ) ( ontology:political_territorial_entity ) } . ?e rdf:type ?s } GROUP BY ?k } . { SELECT DISTINCT ( MAX ( ?w ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) ?z WHERE { VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:executive_branch ) } . ?b rdf:type ?n } GROUP BY ?z } } }
[]
common name executive branch political territorial entity
Q9682
SYSTEM
Elizabeth II
Q9682
(c(Q35798)|c(Q1048835),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
[ANSWER] is the heads of state of max number of executive branches or political territories
[[{'concept': 'Q35798'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?g = ?p ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?k WHERE { VALUES ( ?s ) { ( ontology:Q35798 ) ( ontology:Q1048835 ) } . ?e rdf:type ?s } GROUP BY ?k } . { SELECT DISTINCT ( MAX ( ?w ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) ?z WHERE { VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q35798 ) } . ?b rdf:type ?n } GROUP BY ?z } } }
Elizabeth II
Elizabeth II is the heads of state of max number of executive branches or political territories
Elizabeth II
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
[[{'concept': 'executive branch'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?g = ?p ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?k WHERE { VALUES ( ?s ) { ( ontology:executive_branch ) ( ontology:political_territorial_entity ) } . ?e rdf:type ?s } GROUP BY ?k } . { SELECT DISTINCT ( MAX ( ?w ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) ?z WHERE { VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:executive_branch ) } . ?b rdf:type ?n } GROUP BY ?z } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P607
Q198
USER
How many wars did that person take part in ?
(Q9682,P607,c(Q198))
action count
action filter_type
action find
entity Q9682
relation P607
type Q198
['Q9682', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { ?y rdf:type ontology:Q198 . resource:Q9682 property:P607 ?y }
action count
action filter_type
action find
entity Elizabeth II
relation conflict
type war
['Elizabeth II', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { ?y rdf:type ontology:war . resource:Elizabeth_II property:conflict ?y }
[]
war
SYSTEM
1
Q362
(Q9682,P607,c(Q198))
action count
action filter_type
action find
entity Q9682
relation P607
type Q198
[ANSWER]
['Q9682', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { ?y rdf:type ontology:Q198 . resource:Q9682 property:P607 ?y }
World War II
1
action count
action filter_type
action find
entity Elizabeth II
relation conflict
type war
['Elizabeth II', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) WHERE { ?y rdf:type ontology:war . resource:Elizabeth_II property:conflict ?y }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3279
Q502895 Q500834 Q13406554
USER
Which people were considered to be the statistical leader of around 1 tournaments and sport competitions ?
(c(Q500834)|c(Q13406554),P3279,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q500834
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q13406554
value 1
[[{'concept': 'Q500834'}, {'concept': 'Q13406554'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?x WHERE { { ?t property:P3279 ?x . ?t rdf:type ontology:Q13406554 . ?x rdf:type ontology:Q502895 } UNION { ?t property:P3279 ?x . ?t rdf:type ontology:Q500834 . ?x rdf:type ontology:Q502895 } } GROUP BY ?x } . FILTER ( ?u = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type tournament
action find_reverse_tuple_counts
relation statistical leader
type common name
type sport competition
value 1
[[{'concept': 'tournament'}, {'concept': 'sport competition'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?x WHERE { { ?t property:statistical_leader ?x . ?t rdf:type ontology:sport_competition . ?x rdf:type ontology:common_name } UNION { ?t property:statistical_leader ?x . ?t rdf:type ontology:tournament . ?x rdf:type ontology:common_name } } GROUP BY ?x } . FILTER ( ?u = 1 ) }
[]
common name tournament sport competition
Q36159 Q211876 Q31683
SYSTEM
LeBron James, David Robinson, Dwyane Wade
Q568295 Q4153527 Q27187406 Q4723826 Q3705891 Q1254600 Q17403110 Q316183 Q1638747 Q455540 Q357096 Q978689 Q11691650 Q1363974 Q17264815 Q3802207 Q1033050 Q36159 Q27187226 Q26132520 Q370068 Q3595275 Q4893969 Q16232325 Q822531 Q7332071 Q3855901 Q1635555 Q952921 Q10515951 Q516765 Q8053501 Q16228417 Q16198360 Q277780 Q1617436 Q901437 Q27187398 Q317223 Q129041 Q58335 Q1237848 Q2489833 Q2609359 Q375574 Q3814247 Q3814712 Q352159 Q3930044 Q6451152 Q1628301 Q3703756 Q27187302 Q3807995 Q7356016 Q16841652 Q6322012 Q950564 Q2211310 Q596100 Q1758586 Q7606648 Q27187275 Q3731471 Q20713339 Q26838731 Q1560424 Q664405 Q434824 Q1091369 Q27510015 Q311533 Q224535 Q460507 Q4018600 Q739699 Q732825 Q27518724 Q1638755 Q3325479 Q6388861 Q3848178 Q3809921 Q3317928 Q5086674 Q27187336 Q2449620 Q15069755 Q1634785 Q3976459 Q1640839 Q3882086 Q11889550 Q14470242 Q3857382 Q11561907 Q7131158 Q7130157 Q312651 Q440121 Q2451584 Q3123694 Q27187381 Q371067 Q440382 Q291345 Q27187388 Q2356899 Q1629949 Q3870710 Q517350 Q605561 Q2600792 Q1508678 Q2699075 Q20671499 Q1123222 Q27518101 Q1899299 Q1980759 Q444118 Q3811117 Q24678886 Q1378121 Q18706436 Q8002848 Q3751831 Q3827157 Q3508948 Q926325 Q196185 Q16227000 Q7192274 Q3620463 Q5238520 Q18398239 Q209368 Q1179395 Q1691427 Q2565247 Q4027073 Q27187370 Q2897880 Q2077350 Q284176 Q18630884 Q1763902 Q2910958 Q3192666 Q24088775 Q16209548 Q21932226 Q27187326 Q3180283 Q27187319 Q3342371 Q27187254 Q3806182 Q7666079 Q310541 Q20873438 Q26257453 Q451780 Q3830797 Q4965612 Q5170529 Q1634199 Q493027 Q5262323 Q2466594 Q1435883 Q1913679 Q3876996 Q977135 Q1071728 Q3476711 Q2408361 Q376173 Q16233299 Q511509 Q1364009 Q16209606 Q4714896 Q726234 Q27187350 Q82004 Q3856209 Q2419943 Q2409213 Q433392 Q343341 Q31683 Q311195 Q2310881 Q20744974 Q542563 Q718794 Q3563317 Q977666 Q741842 Q7539568 Q360993 Q14470768 Q3561200 Q3956838 Q14469655 Q3961216 Q927966 Q939343 Q211876 Q2459470 Q2560815 Q2309972 Q306872 Q6438385 Q965738 Q5259012
(c(Q500834)|c(Q13406554),P3279,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q500834
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q13406554
value 1
[ANSWERS] were considered to be the statistical leader of around 1 tournaments and sport competitions
[[{'concept': 'Q500834'}, {'concept': 'Q13406554'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?x WHERE { { ?t property:P3279 ?x . ?t rdf:type ontology:Q13406554 . ?x rdf:type ontology:Q502895 } UNION { ?t property:P3279 ?x . ?t rdf:type ontology:Q500834 . ?x rdf:type ontology:Q502895 } } GROUP BY ?x } . FILTER ( ?u = 1 ) }
Liz Cambage Ana Dabović Nigel McNeal Alfredo Ott Derrick Low Dragan Labović Mack Tuck Pete Maravich Trey Johnson Esteban Solari Josh Childress Freddy Crispina Correia Rawle Marshall Alhaji Mohammed Isaac Fontaine Matt Lojeski LeBron James Michalis Shialis Omar Krayem Branko Milisavljević Geethu Anna Jose Bernardo Vasconcelos Marco Tagbajumi Bernard King Ricky Franklin Mfon Udoka Lars Hansen Patrick Mills Jorge Filipe Monteiro Andre Alves Yiannos Ioannou Jordan McRae Matt Bauscher Peja Stojaković Shavlik Randolph Damon Williams Tasos Zouvanis Fernando Cavenaghi Carmelo Anthony Leandro Barbosa Mickaël Poté Cal Bruton Sean May Darren Phillip Corey Fisher Kenyan Weaks Stephen Curry Randy Culpepper Kyle Fogg Claude Gregory Davin White Charalambos Papadopoulos Jerome Dyson Rocky Smith Jabari Brown Jānis Kaufmanis José Filipe Correia Semedo Gastón Sangoy Troy DeVries Spas Dzhevizov Stefon Jackson Kostakis Pieridis Eric Devendorf Evaldas Žabas Darryl Bryant Joe Arlauckas József Dzurják Rick Barry Aleksandar Ćapin Antri Violari Dominique Wilkins Bobby Dixon Predrag Danilović Wayne Hightower Alex English Charles Smith Marilena Georgiou Miljan Goljović Mouhammad Faye Kendal Pinder Marino Baždarić Jonathan Gibson Modibo Niakate Charron Fisher Andros Savva Jozef Kožlej Danny Gibson Donell Taylor Suad Beširević Rick Hughes Omar Quintero Quinnel Brown Lamont Jones Michael Efevberha Ramu Tokashiki Panikos Krystallis Panayiotis Xiourouppas Rudy Fernández Dave Bing Pete Mickeal Géraldine Robert Lenos Kittos Carlton Myers Evan Turner DeLisha Milton-Jones Sylvester Vernon Derrick Obasohan Blake Ahearn Nate Johnson Tyler Hansbrough Jerel McNeal Carl English George Yardley Justin Dentmon Saša Zagorac Laura Rus Maria Daniella Johansson Marios Neophytou Todor Stoykov Michalis Konstantinou Julie Nykiel Jan Barbarič Keith Langford Robert Arnold Will Hanley Frank Hassell Larry McNeill Anthony Grundy Charlie Bell Russell Westbrook Melvin Ejim Pierre Jackson Antwain Barbour David Pereira da Costa Brandis Raley-Ross Raško Katić De'Teri Mayes Joe Fulks Miljan Mrdaković Darnell Hinson Panikos Hatziloizou Marcus Hatten Radhouane Slimane Michael Scott Terran Petteway Jeff Xavier Boris Gorenc Kani Kouyaté Antonia Edmondson Jason Cadee Eric Chatfield Lakis Theodorou Dionte Christmas Kostas Vasiliades Nneka Ogwumike Panikos Papadopoulos Jaime Lloreda Sérgio Luis Gardino da Silva Juan Carlos Navarro Quinn McDowell Kostas Tsiges Nate Archibald Leroy Edwards Brian Wethers Corin Henry Dontae' Jones Andray Blatche Derek Rucker Joeano Marcelo Machado Max Zaslofsky Nikos Pappas Horace Jenkins József Kiprich Sean Colson Zdravko Radulović Chris Copeland Sean Kilpatrick Andrija Žižić Tadija Dragićević Will Clyburn Aleksandar Vezenkov Chris Woods Andreas Kanaris Bobby Brown Michael Lee Ike Diogu Steve Burtt Suzy Batkovic İbrahim Kutluay Dwyane Wade Jerry West Dewarick Spencer Damion Lee Marcus Brown Drew Nicholas Giorgos Savvidis Luis Flores Elvin Hayes Slađan Šćepović Eric Gordon Jack Leasure Charalambos Andreou Sharaud Curry Al Green Simone Edwards David Simon Wojciech Kowalczyk David Robinson Miroslav Berić Jamie Arnold Dimitar Makriev Abby Bishop Kristo Saage Zoran Slavnić Dennis Trammell
LeBron James, David Robinson and Dwyane Wade were considered to be the statistical leader of around 1 tournaments and sport competitions
LeBron James David Robinson Dwyane Wade
action approx
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type tournament
action find_reverse_tuple_counts
relation statistical leader
type common name
type sport competition
value 1
[[{'concept': 'tournament'}, {'concept': 'sport competition'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?x WHERE { { ?t property:statistical_leader ?x . ?t rdf:type ontology:sport_competition . ?x rdf:type ontology:common_name } UNION { ?t property:statistical_leader ?x . ?t rdf:type ontology:tournament . ?x rdf:type ontology:common_name } } GROUP BY ?x } . FILTER ( ?u = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q36159
P106
Q28640
USER
Which profession has that person as his/her 's career ?
(Q36159,P106,c(Q28640))
action filter_type
action find
entity Q36159
relation P106
type Q28640
['Q36159', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?p WHERE { resource:Q36159 property:P106 ?p . ?p rdf:type ontology:Q28640 }
LeBron James
action filter_type
action find
entity LeBron James
relation occupation
type profession
['LeBron James', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?p WHERE { resource:LeBron_James property:occupation ?p . ?p rdf:type ontology:profession }
[]
profession
Clarification for simple ques.
Q36159
SYSTEM
Did you mean LeBron James ?
Q36159 Q211876 Q31683
(Q36159,P106,c(Q28640)) (Q211876,P106,c(Q28640)) (Q31683,P106,c(Q28640))
[ANSWER]
['Q36159', 'P106', {'concept': 'Q28640'}] ['Q211876', 'P106', {'concept': 'Q28640'}] ['Q31683', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?p WHERE { resource:Q36159 property:P106 ?p . ?p rdf:type ontology:Q28640 }
LeBron James David Robinson Dwyane Wade
Did you mean LeBron James ?
LeBron James
['LeBron James', 'occupation', {'concept': 'profession'}] ['David Robinson', 'occupation', {'concept': 'profession'}] ['Dwyane Wade', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?p WHERE { resource:LeBron_James property:occupation ?p . ?p rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
USER
Yes
(Q36159,P106,c(Q28640))
['Q36159', 'P106', {'concept': 'Q28640'}]
['LeBron James', 'occupation', {'concept': 'profession'}]
[]
Q28389
SYSTEM
screenwriter
Q28389
(Q36159,P106,c(Q28640))
action filter_type
action find
entity Q36159
relation P106
type Q28640
The [ANSWER] has that person as his/her 's career
['Q36159', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?p WHERE { resource:Q36159 property:P106 ?p . ?p rdf:type ontology:Q28640 }
screenwriter
The screenwriter has that person as his/her 's career
screenwriter
action filter_type
action find
entity LeBron James
relation occupation
type profession
['LeBron James', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?p WHERE { resource:LeBron_James property:occupation ?p . ?p rdf:type ontology:profession }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q28389 Q21093017
P106
Q502895
USER
Does Djamel Djaghroud have the profession as that profession ?
(Q21093017,P106,Q28389)
action is_in
entity Q21093017
action find
entity Q28389
relation P106
['Q21093017', 'P106', 'Q28389']
ASK WHERE { resource:Q28389 property:P106 resource:Q21093017 }
screenwriter Djamel Djaghroud
action is_in
entity Djamel Djaghroud
action find
entity screenwriter
relation occupation
['Djamel Djaghroud', 'occupation', 'screenwriter']
ASK WHERE { resource:screenwriter property:occupation resource:Djamel_Djaghroud }
[]
common name
SYSTEM
NO
(Q21093017,P106,Q28389)
action is_in
entity Q21093017
action find
entity Q28389
relation P106
[ANSWER]
['Q21093017', 'P106', 'Q28389']
ASK WHERE { resource:Q28389 property:P106 resource:Q21093017 }
No
action is_in
entity Djamel Djaghroud
action find
entity screenwriter
relation occupation
['Djamel Djaghroud', 'occupation', 'screenwriter']
ASK WHERE { resource:screenwriter property:occupation resource:Djamel_Djaghroud }
[]