Simple Question (Direct)
Simple Question
Q516538
P734
Q82799
USER
Who has the surname Ben Wilson ?
(Q516538,P734,c(Q82799))
action filter_type
action find
entity Q516538
relation P734
type Q82799
['Q516538', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q516538 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Ben Wilson
action filter_type
action find
entity Ben Wilson
relation family name
type name
['Ben Wilson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Ben_Wilson property:family_name ?k . ?k rdf:type ontology:name }
[]
name
Q1645480
SYSTEM
Wilson
Q1645480
(Q516538,P734,c(Q82799))
action filter_type
action find
entity Q516538
relation P734
type Q82799
[ANSWER] has the surname Ben [ANSWER]
['Q516538', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q516538 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Wilson
Wilson has the surname Ben Wilson
Wilson
action filter_type
action find
entity Ben Wilson
relation family name
type name
['Ben Wilson', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Ben_Wilson property:family_name ?k . ?k rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q516538
P27
Q15617994
USER
Which administrative territory is Ben Wilson an inhabitant of ?
(Q516538,P27,c(Q15617994))
action filter_type
action find
entity Q516538
relation P27
type Q15617994
['Q516538', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q516538 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Ben Wilson
action filter_type
action find
entity Ben Wilson
relation country of citizenship
type designation for an administrative territorial entity
['Ben Wilson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Ben_Wilson property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q516538,P27,c(Q15617994))
action filter_type
action find
entity Q516538
relation P27
type Q15617994
The [ANSWER] is Ben Wilson an inhabitant of
['Q516538', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q516538 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is Ben Wilson an inhabitant of
United Kingdom
action filter_type
action find
entity Ben Wilson
relation country of citizenship
type designation for an administrative territorial entity
['Ben Wilson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Ben_Wilson property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16491385
Q15617994
USER
And how about Antônio Clemente Pinto Neto?
(Q16491385,P27,c(Q15617994))
action filter_type
action find
entity Q16491385
relation P27
type Q15617994
['Q16491385', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q16491385 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Antônio Clemente Pinto Neto
action filter_type
action find
entity Antônio Clemente Pinto Neto
relation country of citizenship
type designation for an administrative territorial entity
['Antônio Clemente Pinto Neto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Antônio_Clemente_Pinto_Neto property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q16491385,P27,c(Q15617994))
action filter_type
action find
entity Q16491385
relation P27
type Q15617994
[ANSWER]
['Q16491385', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q16491385 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Brazil
Brazil
action filter_type
action find
entity Antônio Clemente Pinto Neto
relation country of citizenship
type designation for an administrative territorial entity
['Antônio Clemente Pinto Neto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Antônio_Clemente_Pinto_Neto property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q155 Q158876
P530
Q15617994
USER
Does Reinickendorf hold diplomatic relationship with that one ?
(Q155,P530,Q158876)
action is_in
entity Q158876
action find
entity Q155
relation P530
['Q155', 'P530', 'Q158876']
ASK WHERE { resource:Q155 property:P530 resource:Q158876 }
Brazil Reinickendorf
action is_in
entity Reinickendorf
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Reinickendorf']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Reinickendorf }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q155,P530,Q158876)
action is_in
entity Q158876
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q158876']
ASK WHERE { resource:Q155 property:P530 resource:Q158876 }
No
action is_in
entity Reinickendorf
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Reinickendorf']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Reinickendorf }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P194
Q1752346
USER
Which assembly is the legislative body for Brazil ?
(Q155,P194,c(Q1752346))
action filter_type
action find
entity Q155
relation P194
type Q1752346
['Q155', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { resource:Q155 property:P194 ?r . ?r rdf:type ontology:Q1752346 }
Brazil
action filter_type
action find
entity Brazil
relation legislative body
type assembly
['Brazil', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { resource:Brazil property:legislative_body ?r . ?r rdf:type ontology:assembly }
[]
assembly
Q949699
SYSTEM
National Congress of Brasil
Q949699
(Q155,P194,c(Q1752346))
action filter_type
action find
entity Q155
relation P194
type Q1752346
[ANSWER] is the legislative body for Brazil
['Q155', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { resource:Q155 property:P194 ?r . ?r rdf:type ontology:Q1752346 }
National Congress of Brasil
National Congress of Brasil is the legislative body for Brazil
National Congress of Brasil
action filter_type
action find
entity Brazil
relation legislative body
type assembly
['Brazil', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { resource:Brazil property:legislative_body ?r . ?r rdf:type ontology:assembly }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P85
Q7725634
USER
Which is the national anthem of United Kingdom ?
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?q WHERE { resource:Q145 property:P85 ?q . ?q rdf:type ontology:Q7725634 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?q WHERE { resource:United_Kingdom property:anthem ?q . ?q rdf:type ontology:literary_work }
[]
literary work
Q40807
SYSTEM
God Save the Queen
Q40807
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
The national anthem of United Kingdom is [ANSWER]
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?q WHERE { resource:Q145 property:P85 ?q . ?q rdf:type ontology:Q7725634 }
God Save the Queen
The national anthem of United Kingdom is God Save the Queen
God Save the Queen
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?q WHERE { resource:United_Kingdom property:anthem ?q . ?q rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40807
P676
Q502895
USER
Who wrote the lyrics for that literary work ?
(Q40807,P676,c(Q502895))
action filter_type
action find
entity Q40807
relation P676
type Q502895
['Q40807', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q40807 property:P676 ?d . ?d rdf:type ontology:Q502895 }
God Save the Queen
action filter_type
action find
entity God Save the Queen
relation lyrics by
type common name
['God Save the Queen', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:God_Save_the_Queen property:lyrics_by ?d . ?d rdf:type ontology:common_name }
[]
common name
Q1606590
SYSTEM
Henry Carey
Q1606590
(Q40807,P676,c(Q502895))
action filter_type
action find
entity Q40807
relation P676
type Q502895
[ANSWER] wrote the lyrics for that literary work
['Q40807', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q40807 property:P676 ?d . ?d rdf:type ontology:Q502895 }
Henry Carey
Henry Carey wrote the lyrics for that literary work
Henry Carey
action filter_type
action find
entity God Save the Queen
relation lyrics by
type common name
['God Save the Queen', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:God_Save_the_Queen property:lyrics_by ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q40807
P85
Q1048835
USER
How many political territories have God Save the Queen as their anthem ?
(c(Q1048835),P85,Q40807)
action count
action filter_type
action find_reverse
entity Q40807
relation P85
type Q1048835
[{'concept': 'Q1048835'}, 'P85', 'Q40807']
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P85 resource:Q40807 . ?u rdf:type ontology:Q1048835 }
God Save the Queen
action count
action filter_type
action find_reverse
entity God Save the Queen
relation anthem
type political territorial entity
[{'concept': 'political territorial entity'}, 'anthem', 'God Save the Queen']
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:anthem resource:God_Save_the_Queen . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
22
Q1054923 Q766 Q778 Q192184 Q129286 Q408 Q408 Q25228 Q23635 Q43448 Q13353 Q18221 Q5785 Q2594990 Q25305 Q769 Q165783 Q9648 Q35086 Q3405693 Q781 Q785
(c(Q1048835),P85,Q40807)
action count
action filter_type
action find_reverse
entity Q40807
relation P85
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P85', 'Q40807']
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P85 resource:Q40807 . ?u rdf:type ontology:Q1048835 }
British Hong Kong Jamaica The Bahamas Saint Helena, Ascension and Tristan da Cunha British Raj Australia Australia Anguilla Bermuda British Indian Ocean Territory Montserrat Turks and Caicos Islands Cayman Islands Dominion of New Zealand British Virgin Islands Grenada British Antarctic Territory Falkland Islands South Georgia and the South Sandwich Islands Sark Antigua and Barbuda Jersey
22
action count
action filter_type
action find_reverse
entity God Save the Queen
relation anthem
type political territorial entity
[{'concept': 'political territorial entity'}, 'anthem', 'God Save the Queen']
SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:anthem resource:God_Save_the_Queen . ?u rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1606590
P135
Q151885
USER
Which concept was Henry Carey linked with ?
(Q1606590,P135,c(Q151885))
action filter_type
action find
entity Q1606590
relation P135
type Q151885
['Q1606590', 'P135', {'concept': 'Q151885'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q151885 . resource:Q1606590 property:P135 ?f }
Henry Carey
action filter_type
action find
entity Henry Carey
relation movement
type concept
['Henry Carey', 'movement', {'concept': 'concept'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:concept . resource:Henry_Carey property:movement ?f }
[]
concept
Q8361
SYSTEM
Baroque music
Q8361
(Q1606590,P135,c(Q151885))
action filter_type
action find
entity Q1606590
relation P135
type Q151885
Henry Carey was linked to [ANSWER]
['Q1606590', 'P135', {'concept': 'Q151885'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q151885 . resource:Q1606590 property:P135 ?f }
Baroque music
Henry Carey was linked to Baroque music
Baroque music
action filter_type
action find
entity Henry Carey
relation movement
type concept
['Henry Carey', 'movement', {'concept': 'concept'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:concept . resource:Henry_Carey property:movement ?f }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q1694242 Q1606590
P135
Q151885
USER
And also Johann Graf
AND((Q1606590,P135,c(Q151885)), (Q1694242,P135,c(Q151885)))
action filter_type
action intersection
action find
entity Q1606590
relation P135
action find
entity Q1694242
relation P135
type Q151885
{'AND': [['Q1606590', 'P135', {'concept': 'Q151885'}], ['Q1694242', 'P135', {'concept': 'Q151885'}]]}
SELECT DISTINCT ?w WHERE { resource:Q1606590 property:P135 ?w . resource:Q1694242 property:P135 ?w . ?w rdf:type ontology:Q151885 }
Johann Graf Henry Carey
action filter_type
action intersection
action find
entity Henry Carey
relation movement
action find
entity Johann Graf
relation movement
type concept
{'AND': [['Henry Carey', 'movement', {'concept': 'concept'}], ['Johann Graf', 'movement', {'concept': 'concept'}]]}
SELECT DISTINCT ?w WHERE { resource:Henry_Carey property:movement ?w . resource:Johann_Graf property:movement ?w . ?w rdf:type ontology:concept }
[]
concept
Q8361
SYSTEM
Baroque music
Q8361
AND((Q1606590,P135,c(Q151885)), (Q1694242,P135,c(Q151885)))
action filter_type
action intersection
action find
entity Q1606590
relation P135
action find
entity Q1694242
relation P135
type Q151885
[ANSWER]
{'AND': [['Q1606590', 'P135', {'concept': 'Q151885'}], ['Q1694242', 'P135', {'concept': 'Q151885'}]]}
SELECT DISTINCT ?w WHERE { resource:Q1606590 property:P135 ?w . resource:Q1694242 property:P135 ?w . ?w rdf:type ontology:Q151885 }
Baroque music
Baroque music
action filter_type
action intersection
action find
entity Henry Carey
relation movement
action find
entity Johann Graf
relation movement
type concept
{'AND': [['Henry Carey', 'movement', {'concept': 'concept'}], ['Johann Graf', 'movement', {'concept': 'concept'}]]}
SELECT DISTINCT ?w WHERE { resource:Henry_Carey property:movement ?w . resource:Johann_Graf property:movement ?w . ?w rdf:type ontology:concept }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P706
Q82794 Q151885
USER
Which geographic regions are the location where min number of concepts are located ?
(c(Q151885),P706,Q2866905)
action argmin
action find_reverse_tuple_counts
relation P706
type Q82794
type Q151885
[{'concept': 'Q151885'}, 'P706', 'Q2866905']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?l ) { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:P706 ?x . ?x rdf:type ontology:Q82794 . ?p rdf:type ontology:Q151885 } GROUP BY ?x } } . { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:P706 ?d . ?d rdf:type ontology:Q82794 . ?u rdf:type ontology:Q151885 } GROUP BY ?d } . FILTER ( ?e = ?l ) }
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type geographic region
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Aspé Valley']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?l ) { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:located_on_terrain_feature ?x . ?x rdf:type ontology:geographic_region . ?p rdf:type ontology:concept } GROUP BY ?x } } . { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:located_on_terrain_feature ?d . ?d rdf:type ontology:geographic_region . ?u rdf:type ontology:concept } GROUP BY ?d } . FILTER ( ?e = ?l ) }
[]
geographic region concept
Q2887520 Q20925112 Q20906226
SYSTEM
Vistula basin, Bug Basin, Narew Basin
Q3554041 Q3554044 Q316883 Q202322 Q1404827 Q22703273 Q917858 Q214662 Q833127 Q15758768 Q1661032 Q1746460 Q375953 Q22951373 Q3039434 Q301774 Q132480 Q1221188 Q317751 Q875085 Q1295846 Q5567863 Q571607 Q881921 Q15139349 Q13130354 Q383032 Q571696 Q2258070 Q1444797 Q671694 Q2887520 Q3041080 Q8352403 Q22666716 Q489533 Q51614 Q15139348 Q721298 Q2214132 Q303730 Q14523513 Q2887517 Q15719556 Q3487269 Q7909150 Q1741416 Q2507852 Q178925 Q7686375 Q6311733 Q763829 Q306950 Q251246 Q16004983 Q1325091 Q567318 Q16004967 Q738671 Q60140 Q14912672 Q170081 Q20925112 Q1794875 Q565751 Q569073 Q14215814 Q12046593 Q884616 Q13370189 Q912837 Q384885 Q16004976 Q897389 Q39061 Q12880609 Q2148017 Q244451 Q7594902 Q14683140 Q734149 Q171393 Q1682868 Q192201 Q2099232 Q1616130 Q897333 Q314741 Q20906226 Q7549778 Q481600 Q2199768 Q22667180 Q118899 Q1339950 Q1940689 Q816843 Q734317 Q14210889 Q1592977 Q530131 Q16004873 Q16004874 Q16004956 Q170526 Q1935344 Q1471257 Q22680049 Q2282388 Q1772582 Q1138800 Q575245 Q6515602 Q2866905
(c(Q151885),P706,Q2866905)
action argmin
action find_reverse_tuple_counts
relation P706
type Q82794
type Q151885
[ANSWERS] are the location where min number of concepts are located
[{'concept': 'Q151885'}, 'P706', 'Q2866905']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?l ) { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:P706 ?x . ?x rdf:type ontology:Q82794 . ?p rdf:type ontology:Q151885 } GROUP BY ?x } } . { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:P706 ?d . ?d rdf:type ontology:Q82794 . ?u rdf:type ontology:Q151885 } GROUP BY ?d } . FILTER ( ?e = ?l ) }
Matapédia Valley Vézère Valley Teltow Beqaa Valley The Fens Hockley Valley The Burren Budjak Lower Bavarian Upland Yangtze River basin Unteres Mittelrheingebiet Westmünsterland Altes Land Elbląg Basin Syrtis Major quadrangle Etschtal Kantō region Diepholzer Moorniederung Kehdingen Gastein Valley Wesermünde Geest Glen Lochay Middle Rhine Eider-Treene Depression Helen Planitia quadrangle Nant Gwynant Brixental Hoeksche Waard Swabian Keuper-Lias Plains Frankenweide Krimpenerwaard Vistula basin Valley of the Ten Peaks Ebro Basin Brda basin Binn valley Anatolia Niobe Planitia quadrangle Asbacher Hochfläche Alblasserwaard Aatal Baden Airpark Vilaine basin Honnefer Talweitung Wurstelprater Val Sinestra Schleswig-Holstein Uplands Val d'Illiez Gran Canaria Tarn Valley Junction Hollow Jezreel Valley Eastern Upper Lusatia Vienna Woods Lada Terra quadrangle Elbe Urstromtal Thuringian Basin Aphrodite Terra  quadrangle Val Bregaglia Indian subcontinent Rheinwald Neandertal Bug Basin Niederwesterwald Epirus Outback Murg Valley Danube basin Drömling Neman Basin Glens of Antrim Val Gardena Guinevere Planitia quadrangle Altmühltal Northern Hemisphere Makedonika Tembi Rheinwesterwälder Vulkanrücken Amazon basin St Nectan's Glen Little Yosemite Valley Torne Valley Wallachia Krimmler Achental Wachau Pleiser Hügelland Hetch Hetchy Teufelsmoor Dresden Basin Narew Basin Soan Sakaser Valley Schönbuch Southern Flevoland Drwęca Basin Brazilian Highlands Sternberg lake district Central Black Forest San Fernando Valley Val Camonica Chao Phraya basin Heckengäu Taylor Valley Lavinia Planitia quadrangle Ishtar Terra quadrangle Sedna Planitia quadrangle Fertile Crescent Tarfala Valley Franconian Keuper-Lias Plains Pregolya Basin Siebenmühlental Thames Valley Pelagonia Chad Basin Tørdal Aspé Valley
Vistula basin, Bug Basin and Narew Basin are the location where min number of concepts are located
Vistula basin Bug Basin Narew Basin
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type geographic region
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Aspé Valley']
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?l ) { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?r ) WHERE { ?p property:located_on_terrain_feature ?x . ?x rdf:type ontology:geographic_region . ?p rdf:type ontology:concept } GROUP BY ?x } } . { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?e ) WHERE { ?u property:located_on_terrain_feature ?d . ?d rdf:type ontology:geographic_region . ?u rdf:type ontology:concept } GROUP BY ?d } . FILTER ( ?e = ?l ) }
[]