Simple Question (Direct)
Simple Question
Q8048526
P54
Q1194951
USER
What is Yang Zhaohui a member of ?
(Q8048526,P54,c(Q1194951))
action filter_type
action find
entity Q8048526
relation P54
type Q1194951
['Q8048526', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?u WHERE { resource:Q8048526 property:P54 ?u . ?u rdf:type ontology:Q1194951 }
Yang Zhaohui
action filter_type
action find
entity Yang Zhaohui
relation member of sports team
type national sports team
['Yang Zhaohui', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?u WHERE { resource:Yang_Zhaohui property:member_of_sports_team ?u . ?u rdf:type ontology:national_sports_team }
[]
national sports team
Q130582
SYSTEM
China PR national football team
Q130582
(Q8048526,P54,c(Q1194951))
action filter_type
action find
entity Q8048526
relation P54
type Q1194951
Yang Zhaohui is a member of the [ANSWER]
['Q8048526', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?u WHERE { resource:Q8048526 property:P54 ?u . ?u rdf:type ontology:Q1194951 }
China PR national football team
Yang Zhaohui is a member of the China PR national football team
China PR national football team
action filter_type
action find
entity Yang Zhaohui
relation member of sports team
type national sports team
['Yang Zhaohui', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?u WHERE { resource:Yang_Zhaohui property:member_of_sports_team ?u . ?u rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8048526
P19
Q56061
USER
Which administrative territory was Yang Zhaohui born in ?
(Q8048526,P19,c(Q56061))
action filter_type
action find
entity Q8048526
relation P19
type Q56061
['Q8048526', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q8048526 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Yang Zhaohui
action filter_type
action find
entity Yang Zhaohui
relation place of birth
type administrative territorial entity
['Yang Zhaohui', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Yang_Zhaohui property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q956
SYSTEM
Beijing
Q956
(Q8048526,P19,c(Q56061))
action filter_type
action find
entity Q8048526
relation P19
type Q56061
Yang Zhaohui was born in [ANSWER]
['Q8048526', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q8048526 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Beijing
Yang Zhaohui was born in Beijing
Beijing
action filter_type
action find
entity Yang Zhaohui
relation place of birth
type administrative territorial entity
['Yang Zhaohui', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Yang_Zhaohui property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3182225
Q56061
USER
And what about John Ostashek?
(Q3182225,P19,c(Q56061))
action filter_type
action find
entity Q3182225
relation P19
type Q56061
['Q3182225', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q3182225 property:P19 ?a }
John Ostashek
action filter_type
action find
entity John Ostashek
relation place of birth
type administrative territorial entity
['John Ostashek', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:John_Ostashek property:place_of_birth ?a }
[]
administrative territorial entity
Q1743462
SYSTEM
High Prairie
Q1743462
(Q3182225,P19,c(Q56061))
action filter_type
action find
entity Q3182225
relation P19
type Q56061
[ANSWER]
['Q3182225', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q3182225 property:P19 ?a }
High Prairie
High Prairie
action filter_type
action find
entity John Ostashek
relation place of birth
type administrative territorial entity
['John Ostashek', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:John_Ostashek property:place_of_birth ?a }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1743462 Q3824926 Q16
P17
Q1048835
USER
Is that administrative territory present in La Arena District and Canada ?
(Q1743462,P17,Q3824926) (Q1743462,P17,Q16)
action is_in
entity Q1743462
action intersection
action find_reverse
entity Q3824926
relation P17
action find_reverse
entity Q16
relation P17
['Q1743462', 'P17', 'Q3824926'] ['Q1743462', 'P17', 'Q16']
ASK WHERE { resource:Q1743462 property:P17 resource:Q3824926 . resource:Q1743462 property:P17 resource:Q16 }
High Prairie La Arena District Canada
action is_in
entity High Prairie
action intersection
action find_reverse
entity La Arena District
relation country
action find_reverse
entity Canada
relation country
['High Prairie', 'country', 'La Arena District'] ['High Prairie', 'country', 'Canada']
ASK WHERE { resource:High_Prairie property:country resource:La_Arena_District . resource:High_Prairie property:country resource:Canada }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q1743462,P17,Q3824926) (Q1743462,P17,Q16)
action is_in
entity Q1743462
action intersection
action find_reverse
entity Q3824926
relation P17
action find_reverse
entity Q16
relation P17
[ANSWER]
['Q1743462', 'P17', 'Q3824926'] ['Q1743462', 'P17', 'Q16']
ASK WHERE { resource:Q1743462 property:P17 resource:Q3824926 . resource:Q1743462 property:P17 resource:Q16 }
NO and YES respectively
action is_in
entity High Prairie
action intersection
action find_reverse
entity La Arena District
relation country
action find_reverse
entity Canada
relation country
['High Prairie', 'country', 'La Arena District'] ['High Prairie', 'country', 'Canada']
ASK WHERE { resource:High_Prairie property:country resource:La_Arena_District . resource:High_Prairie property:country resource:Canada }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q880606 Q3182225
P991
Q40231
USER
Which elections were John Ostashek or John A. Burns elected successfully from ?
OR((c(Q40231),P991,Q3182225), (c(Q40231),P991,Q880606))
action filter_type
action union
action find_reverse
entity Q3182225
relation P991
action find_reverse
entity Q880606
relation P991
type Q40231
{'OR': [[{'concept': 'Q40231'}, 'P991', 'Q3182225'], [{'concept': 'Q40231'}, 'P991', 'Q880606']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P991 resource:Q3182225 } UNION { ?l property:P991 resource:Q880606 } } . ?l rdf:type ontology:Q40231 }
John A. Burns John Ostashek
action filter_type
action union
action find_reverse
entity John Ostashek
relation successful candidate
action find_reverse
entity John A. Burns
relation successful candidate
type election
{'OR': [[{'concept': 'election'}, 'successful candidate', 'John Ostashek'], [{'concept': 'election'}, 'successful candidate', 'John A. Burns']]}
SELECT DISTINCT ?l WHERE { { { ?l property:successful_candidate resource:John_Ostashek } UNION { ?l property:successful_candidate resource:John_A._Burns } } . ?l rdf:type ontology:election }
[]
election
Q16152526 Q3586474 Q5684456 Q5684454
SYSTEM
Hawaii gubernatorial election, 1970, Yukon general election, 1992, Hawaii gubernatorial election, 1966, Hawaii gubernatorial election, 1962
Q16152526 Q3586474 Q5684456 Q5684454
OR((c(Q40231),P991,Q3182225), (c(Q40231),P991,Q880606))
action filter_type
action union
action find_reverse
entity Q3182225
relation P991
action find_reverse
entity Q880606
relation P991
type Q40231
[ANSWERS]
{'OR': [[{'concept': 'Q40231'}, 'P991', 'Q3182225'], [{'concept': 'Q40231'}, 'P991', 'Q880606']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P991 resource:Q3182225 } UNION { ?l property:P991 resource:Q880606 } } . ?l rdf:type ontology:Q40231 }
Hawaii gubernatorial election, 1970 Yukon general election, 1992 Hawaii gubernatorial election, 1966 Hawaii gubernatorial election, 1962
Hawaii gubernatorial election, 1970, Yukon general election, 1992, Hawaii gubernatorial election, 1966 and Hawaii gubernatorial election, 1962 were John Ostashek or John A. Burns elected successfully from
Hawaii gubernatorial election, 1970 Yukon general election, 1992 Hawaii gubernatorial election, 1966 Hawaii gubernatorial election, 1962
action filter_type
action union
action find_reverse
entity John Ostashek
relation successful candidate
action find_reverse
entity John A. Burns
relation successful candidate
type election
{'OR': [[{'concept': 'election'}, 'successful candidate', 'John Ostashek'], [{'concept': 'election'}, 'successful candidate', 'John A. Burns']]}
SELECT DISTINCT ?l WHERE { { { ?l property:successful_candidate resource:John_Ostashek } UNION { ?l property:successful_candidate resource:John_A._Burns } } . ?l rdf:type ontology:election }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q313423
P1441
Q2342494 Q234460 Q502895
USER
Which people appear in less number of collectables or texts than Amon of Judah ?
(c(Q502895),P1441,c(Q2342494)|c(Q234460))
action less
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action count
action filter_multi_types
action find
entity Q313423
relation P1441
type Q2342494
type Q234460
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { resource:Q313423 property:P1441 ?q . { { ?q rdf:type ontology:Q2342494 } UNION { ?q rdf:type ontology:Q234460 } } } } . FILTER ( ?h < ?t ) . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?h ) WHERE { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q234460 ) } . ?m rdf:type ?r } GROUP BY ?w } }
Amon of Judah
action less
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type text
action count
action filter_multi_types
action find
entity Amon of Judah
relation present in work
type collectable
type text
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'text'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { resource:Amon_of_Judah property:present_in_work ?q . { { ?q rdf:type ontology:collectable } UNION { ?q rdf:type ontology:text } } } } . FILTER ( ?h < ?t ) . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?h ) WHERE { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:text ) } . ?m rdf:type ?r } GROUP BY ?w } }
[]
collectable text common name
Q17457 Q110436 Q8413
SYSTEM
Donald Knuth, Cory Doctorow, Constantine the Great
Q603233 Q2447493 Q80048 Q529984 Q23885172 Q4430779 Q249381 Q240258 Q24579400 Q7307192 Q131195 Q2426699 Q24624067 Q2574151 Q2052042 Q318912 Q4006447 Q363623 Q3343834 Q2451581 Q2046277 Q715713 Q24577230 Q494455 Q673959 Q2033697 Q24622402 Q20656752 Q311556 Q19975705 Q560559 Q25885222 Q1867479 Q879668 Q2170784 Q181538 Q24623408 Q8413 Q2600794 Q2282686 Q459606 Q437417 Q3774081 Q24624893 Q1396131 Q3591188 Q2264125 Q608841 Q3259530 Q24625686 Q2137929 Q24577318 Q515828 Q24625326 Q25858050 Q26858752 Q923021 Q24633210 Q715547 Q1446 Q1641601 Q2073479 Q2723049 Q1346246 Q2578955 Q550255 Q1851709 Q24625073 Q1380878 Q16879711 Q24623579 Q1377025 Q2276030 Q264699 Q2711883 Q886399 Q326585 Q2304442 Q2651263 Q24577238 Q209793 Q24632700 Q1808889 Q587893 Q24626363 Q2685920 Q256076 Q32295 Q24633126 Q1091513 Q3658171 Q2601106 Q4804479 Q26721185 Q2292243 Q2448083 Q633681 Q24623790 Q200947 Q24083251 Q1947936 Q211396 Q25923184 Q2075711 Q2361344 Q3275910 Q2477603 Q110436 Q23906252 Q2519772 Q879088 Q183089 Q7734 Q2168182 Q878882 Q26858995 Q2487300 Q372783 Q16006746 Q17457 Q786748 Q24626010 Q26858919 Q2047062
(c(Q502895),P1441,c(Q2342494)|c(Q234460))
action less
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action count
action filter_multi_types
action find
entity Q313423
relation P1441
type Q2342494
type Q234460
[ANSWERS] appear in less number of collectables or texts than Amon of Judah
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { resource:Q313423 property:P1441 ?q . { { ?q rdf:type ontology:Q2342494 } UNION { ?q rdf:type ontology:Q234460 } } } } . FILTER ( ?h < ?t ) . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?h ) WHERE { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q234460 ) } . ?m rdf:type ?r } GROUP BY ?w } }
Julius Asclepiodotus Ferrex Al Capone Eric Anundsson Victor Petit Immanuel Markandeya Olof Björnsson Jebidiah Farnsworth Refil Constantius Chlorus Dyfnwal Moelmud Bea Hansen Sisillius III Mempricius Eric the Victorious Urianus Cassivellaunus Norman Winther Cordelia of Britain Parikshit Salvatore Maranzano Harriet Mutesi Orville Wright Leil Sisillius I Frank Fauteux Bernard C. Webber Allectus Daniel Webster Cluff Constans II James Harcourt Jago of Britain Björn Ironside Anund Uppsale Rudolf Abel Eldon Hanan Constantine the Great Erik Björnsson Locrinus Ambrosius Aurelianus Cunobeline Gracianus Municeps Raymond Sybert Wilbur Wright Erik Refilsson Bladud Arvirargus Loretta Jones Andy Fitzgerald Gurgustius Sara Katende Tasciovanus Miriam Webber Helen Kingsleigh Sarah Katende Gorboduc George "Tiny" Myers Mandubracius Caracalla Tattenai Shaunaka Mayasura Johnny Ringo Porrex I J. William Fulbright Rud Hud Hudibras Richard Livesey Vortimer Sage Animandaya Wallace Quirey Bharata Archmail Wil Wheaton Gurguit Barbtruc Maelgwn Gwynedd Vortigern Coel Hen Trahern Robert Katende Constantine III John Stello Kimarcus Sisillius II Mel Gouthro Bledudo Cunedagius Michael J. Massimino Donald Bangs Son of Gorbonianus Phiona Mutesi Rukmi Ash Vasudevan Lena Gogan Rivallo Brutus Greenshield Björn Eriksson D.A. Brown Ahmad ibn Fadlan Stan the Man Beldgabred Magnus Maximus Elizabeth Ham Andragius Durvasa Anne Françoise Elisabeth Lange Vaisampayana Cory Doctorow Caf' Francisco Sawyl Penuchel Björn at Haugi Publius Septimius Geta Joshua Ebraucus Togodumnus Aloysius Kyazze Cunedda Adrian Cronauer James B. Donovan Donald Knuth Pedro González de Mendoza Ervin Maske Hope Katende Marius of Britain
Donald Knuth, Cory Doctorow and Constantine the Great appear in less number of collectables or texts than Amon of Judah
Donald Knuth Cory Doctorow Constantine the Great
action less
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type text
action count
action filter_multi_types
action find
entity Amon of Judah
relation present in work
type collectable
type text
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'text'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?t ) WHERE { resource:Amon_of_Judah property:present_in_work ?q . { { ?q rdf:type ontology:collectable } UNION { ?q rdf:type ontology:text } } } } . FILTER ( ?h < ?t ) . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?h ) WHERE { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:text ) } . ?m rdf:type ?r } GROUP BY ?w } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1281177
P1441
Q2342494 Q234460 Q502895
USER
And how about Beowulf?
(c(Q502895),P1441,c(Q2342494)|c(Q234460))
action less
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action count
action filter_multi_types
action find
entity Q1281177
relation P1441
type Q2342494
type Q234460
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?t WHERE { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:Q2342494 ) ( ontology:Q234460 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Q1281177 property:P1441 ?o . { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:Q234460 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?e < ?f ) }
Beowulf
action less
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type text
action count
action filter_multi_types
action find
entity Beowulf
relation present in work
type collectable
type text
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'text'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?t WHERE { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:collectable ) ( ontology:text ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Beowulf property:present_in_work ?o . { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:text ) ( ontology:collectable ) } } } } . FILTER ( ?e < ?f ) }
[]
collectable text common name
Q17457 Q110436 Q8413
SYSTEM
Donald Knuth, Cory Doctorow, Constantine the Great
Q603233 Q2447493 Q80048 Q529984 Q23885172 Q4430779 Q249381 Q240258 Q24579400 Q7307192 Q131195 Q2426699 Q24624067 Q2574151 Q2052042 Q318912 Q4006447 Q363623 Q3343834 Q2451581 Q2046277 Q715713 Q24577230 Q494455 Q673959 Q2033697 Q24622402 Q20656752 Q311556 Q19975705 Q560559 Q25885222 Q1867479 Q879668 Q2170784 Q181538 Q24623408 Q8413 Q2600794 Q2282686 Q459606 Q437417 Q3774081 Q24624893 Q1396131 Q3591188 Q2264125 Q608841 Q3259530 Q24625686 Q2137929 Q24577318 Q515828 Q24625326 Q25858050 Q26858752 Q923021 Q24633210 Q715547 Q1446 Q1641601 Q2073479 Q2723049 Q1346246 Q2578955 Q550255 Q1851709 Q24625073 Q1380878 Q16879711 Q24623579 Q1377025 Q2276030 Q264699 Q2711883 Q886399 Q326585 Q2304442 Q2651263 Q24577238 Q209793 Q24632700 Q1808889 Q587893 Q24626363 Q2685920 Q256076 Q32295 Q24633126 Q1091513 Q3658171 Q2601106 Q4804479 Q26721185 Q2292243 Q2448083 Q633681 Q24623790 Q200947 Q24083251 Q1947936 Q211396 Q25923184 Q2075711 Q2361344 Q3275910 Q2477603 Q110436 Q23906252 Q2519772 Q879088 Q183089 Q7734 Q2168182 Q878882 Q26858995 Q2487300 Q372783 Q16006746 Q17457 Q786748 Q24626010 Q26858919 Q2047062
(c(Q502895),P1441,c(Q2342494)|c(Q234460))
action less
action union
action find_tuple_counts
relation P1441
type Q502895
type Q2342494
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action count
action filter_multi_types
action find
entity Q1281177
relation P1441
type Q2342494
type Q234460
[ANSWERS]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q2342494'}, {'concept': 'Q234460'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?t WHERE { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:Q2342494 ) ( ontology:Q234460 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Q1281177 property:P1441 ?o . { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:Q234460 ) ( ontology:Q2342494 ) } } } } . FILTER ( ?e < ?f ) }
Julius Asclepiodotus Ferrex Al Capone Eric Anundsson Victor Petit Immanuel Markandeya Olof Björnsson Jebidiah Farnsworth Refil Constantius Chlorus Dyfnwal Moelmud Bea Hansen Sisillius III Mempricius Eric the Victorious Urianus Cassivellaunus Norman Winther Cordelia of Britain Parikshit Salvatore Maranzano Harriet Mutesi Orville Wright Leil Sisillius I Frank Fauteux Bernard C. Webber Allectus Daniel Webster Cluff Constans II James Harcourt Jago of Britain Björn Ironside Anund Uppsale Rudolf Abel Eldon Hanan Constantine the Great Erik Björnsson Locrinus Ambrosius Aurelianus Cunobeline Gracianus Municeps Raymond Sybert Wilbur Wright Erik Refilsson Bladud Arvirargus Loretta Jones Andy Fitzgerald Gurgustius Sara Katende Tasciovanus Miriam Webber Helen Kingsleigh Sarah Katende Gorboduc George "Tiny" Myers Mandubracius Caracalla Tattenai Shaunaka Mayasura Johnny Ringo Porrex I J. William Fulbright Rud Hud Hudibras Richard Livesey Vortimer Sage Animandaya Wallace Quirey Bharata Archmail Wil Wheaton Gurguit Barbtruc Maelgwn Gwynedd Vortigern Coel Hen Trahern Robert Katende Constantine III John Stello Kimarcus Sisillius II Mel Gouthro Bledudo Cunedagius Michael J. Massimino Donald Bangs Son of Gorbonianus Phiona Mutesi Rukmi Ash Vasudevan Lena Gogan Rivallo Brutus Greenshield Björn Eriksson D.A. Brown Ahmad ibn Fadlan Stan the Man Beldgabred Magnus Maximus Elizabeth Ham Andragius Durvasa Anne Françoise Elisabeth Lange Vaisampayana Cory Doctorow Caf' Francisco Sawyl Penuchel Björn at Haugi Publius Septimius Geta Joshua Ebraucus Togodumnus Aloysius Kyazze Cunedda Adrian Cronauer James B. Donovan Donald Knuth Pedro González de Mendoza Ervin Maske Hope Katende Marius of Britain
Donald Knuth Cory Doctorow Constantine the Great
action less
action union
action find_tuple_counts
relation present in work
type common name
type collectable
action find_tuple_counts
relation present in work
type common name
type text
action count
action filter_multi_types
action find
entity Beowulf
relation present in work
type collectable
type text
[{'concept': 'common name'}, 'present in work', [{'concept': 'collectable'}, {'concept': 'text'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?t WHERE { ?l rdf:type ?h . VALUES ( ?h ) { ( ontology:collectable ) ( ontology:text ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { resource:Beowulf property:present_in_work ?o . { ?o rdf:type ?a . VALUES ( ?a ) { ( ontology:text ) ( ontology:collectable ) } } } } . FILTER ( ?e < ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by approximately 1722 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1722
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?x ) WHERE { ?y rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 . ?f property:P1303 ?y } GROUP BY ?y } . FILTER ( ?x = 1722 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1722
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?x ) WHERE { ?y rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name . ?f property:instrument ?y } GROUP BY ?y } . FILTER ( ?x = 1722 ) }
[]
musical instrument common name
SYSTEM
7
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1722
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?x ) WHERE { ?y rdf:type ontology:Q34379 . ?f rdf:type ontology:Q502895 . ?f property:P1303 ?y } GROUP BY ?y } . FILTER ( ?x = 1722 ) }
viola bass guitar double bass trumpet cello organ drum kit
7
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1722
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?c ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?x ) WHERE { ?y rdf:type ontology:musical_instrument . ?f rdf:type ontology:common_name . ?f property:instrument ?y } GROUP BY ?y } . FILTER ( ?x = 1722 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q956
P551
Q502895
USER
Which people have residence at Beijing ?
(c(Q502895),P551,Q956)
action filter_type
action find_reverse
entity Q956
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q956']
SELECT DISTINCT ?o WHERE { ?o property:P551 resource:Q956 . ?o rdf:type ontology:Q502895 }
Beijing
action filter_type
action find_reverse
entity Beijing
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Beijing']
SELECT DISTINCT ?o WHERE { ?o property:residence resource:Beijing . ?o rdf:type ontology:common_name }
[]
common name
Q546592 Q8070360 Q430911
SYSTEM
Isao Tomita, Zhang Xin, Peng Liyuan
Q99829 Q18062194 Q546592 Q2594678 Q7967716 Q4801752 Q17505493 Q18211762 Q15907692 Q1786326 Q6653754 Q8070360 Q430911 Q3841829 Q20812953 Q20488353 Q271741 Q3497307 Q24699410 Q202597
(c(Q502895),P551,Q956)
action filter_type
action find_reverse
entity Q956
relation P551
type Q502895
[ANSWERS] have residence at Beijing
[{'concept': 'Q502895'}, 'P551', 'Q956']
SELECT DISTINCT ?o WHERE { ?o property:P551 resource:Q956 . ?o rdf:type ontology:Q502895 }
Zhao Ziyang Liang Chen Isao Tomita Wu Yajun Wang Yi Liu Wanting Francoise Moreux-Rodrigues Wang Chuhan Yunggiema Wenchen Qin Liu Wanchuan Zhang Xin Peng Liyuan Ma Gui Maria Zakharova Yann Layma Sun Shengnan Yu Xinyuan Ren Naying Chen Kaige
Isao Tomita, Zhang Xin and Peng Liyuan have residence at Beijing
Isao Tomita Zhang Xin Peng Liyuan
action filter_type
action find_reverse
entity Beijing
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Beijing']
SELECT DISTINCT ?o WHERE { ?o property:residence resource:Beijing . ?o rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1743462
P20
Q502895
USER
Which person has High Prairie as place of death ?
(c(Q502895),P20,Q1743462)
action filter_type
action find_reverse
entity Q1743462
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q1743462']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P20 resource:Q1743462 }
High Prairie
action filter_type
action find_reverse
entity High Prairie
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'High Prairie']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_death resource:High_Prairie }
[]
common name
Q5596382
SYSTEM
Grant Notley
Q5596382
(c(Q502895),P20,Q1743462)
action filter_type
action find_reverse
entity Q1743462
relation P20
type Q502895
[ANSWER] has High Prairie as place of death
[{'concept': 'Q502895'}, 'P20', 'Q1743462']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P20 resource:Q1743462 }
Grant Notley
Grant Notley has High Prairie as place of death
Grant Notley
action filter_type
action find_reverse
entity High Prairie
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'High Prairie']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_death resource:High_Prairie }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1743462
P47
Q56061
USER
Which administrative territory is bordered by that one ?
(c(Q56061),P47,Q5596382)
action filter_type
action find_reverse
entity Q1743462
relation P47
type Q56061
[{'concept': 'Q56061'}, 'P47', 'Q5596382']
SELECT DISTINCT ?d WHERE { ?d property:P47 resource:Q1743462 . ?d rdf:type ontology:Q56061 }
High Prairie
action filter_type
action find_reverse
entity High Prairie
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Grant Notley']
SELECT DISTINCT ?d WHERE { ?d property:shares_border_with resource:High_Prairie . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5476673
SYSTEM
Fox Creek
Q5476673
(c(Q56061),P47,Q5596382)
action filter_type
action find_reverse
entity Q1743462
relation P47
type Q56061
The [ANSWER] is bordered by that one
[{'concept': 'Q56061'}, 'P47', 'Q5596382']
SELECT DISTINCT ?d WHERE { ?d property:P47 resource:Q1743462 . ?d rdf:type ontology:Q56061 }
Fox Creek
The Fox Creek is bordered by that one
Fox Creek
action filter_type
action find_reverse
entity High Prairie
relation shares border with
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'shares border with', 'Grant Notley']
SELECT DISTINCT ?d WHERE { ?d property:shares_border_with resource:High_Prairie . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have max number of administrative territories as their base harbour ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?n ) WHERE { ?y property:P532 ?t . ?y rdf:type ontology:Q2235308 . ?t rdf:type ontology:Q56061 } GROUP BY ?y } } . { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?z ) WHERE { ?o property:P532 ?p . ?o rdf:type ontology:Q2235308 . ?p rdf:type ontology:Q56061 } GROUP BY ?o } . FILTER ( ?z = ?w ) }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?n ) WHERE { ?y property:port_of_registry ?t . ?y rdf:type ontology:ship_type . ?t rdf:type ontology:administrative_territorial_entity } GROUP BY ?y } } . { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?z ) WHERE { ?o property:port_of_registry ?p . ?o rdf:type ontology:ship_type . ?p rdf:type ontology:administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?z = ?w ) }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[ANSWER] have max number of administrative territories as their base harbour
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?n ) WHERE { ?y property:P532 ?t . ?y rdf:type ontology:Q2235308 . ?t rdf:type ontology:Q56061 } GROUP BY ?y } } . { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?z ) WHERE { ?o property:P532 ?p . ?o rdf:type ontology:Q2235308 . ?p rdf:type ontology:Q56061 } GROUP BY ?o } . FILTER ( ?z = ?w ) }
MS Arrow
MS Arrow have max number of administrative territories as their base harbour
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?w ) { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?n ) WHERE { ?y property:port_of_registry ?t . ?y rdf:type ontology:ship_type . ?t rdf:type ontology:administrative_territorial_entity } GROUP BY ?y } } . { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?z ) WHERE { ?o property:port_of_registry ?p . ?o rdf:type ontology:ship_type . ?p rdf:type ontology:administrative_territorial_entity } GROUP BY ?o } . FILTER ( ?z = ?w ) }
[]