Simple Question (Direct)
Simple Question
Q6758228
P27
Q15617994
USER
Which administrative territory is the native country of Marcus Holness ?
(Q6758228,P27,c(Q15617994))
action filter_type
action find
entity Q6758228
relation P27
type Q15617994
['Q6758228', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q6758228 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Marcus Holness
action filter_type
action find
entity Marcus Holness
relation country of citizenship
type designation for an administrative territorial entity
['Marcus Holness', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Marcus_Holness property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6758228,P27,c(Q15617994))
action filter_type
action find
entity Q6758228
relation P27
type Q15617994
The [ANSWER] is the native country of Marcus Holness
['Q6758228', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q6758228 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
United Kingdom
The United Kingdom is the native country of Marcus Holness
United Kingdom
action filter_type
action find
entity Marcus Holness
relation country of citizenship
type designation for an administrative territorial entity
['Marcus Holness', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Marcus_Holness property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6758228
P21
Q290
USER
Which sex does that person belong to ?
(Q145,P21,c(Q290))
action filter_type
action find
entity Q6758228
relation P21
type Q290
['Q145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q6758228 property:P21 ?f . ?f rdf:type ontology:Q290 }
Marcus Holness
action filter_type
action find
entity Marcus Holness
relation gender
type sex
['United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Marcus_Holness property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q145,P21,c(Q290))
action filter_type
action find
entity Q6758228
relation P21
type Q290
That person belongs to [ANSWER]
['Q145', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q6758228 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Marcus Holness
relation gender
type sex
['United Kingdom', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Marcus_Holness property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P35
Q502895
USER
Which people are the heads of state of United Kingdom ?
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q145 property:P35 ?z }
United Kingdom
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:United_Kingdom property:head_of_state ?z }
[]
common name
Q9682 Q280856 Q269412
SYSTEM
Elizabeth II, George VI, George V
Q590227 Q269412 Q280856 Q9682
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
[ANSWERS] are the heads of state of United Kingdom
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q502895 . resource:Q145 property:P35 ?z }
Edward VIII George V George VI Elizabeth II
Elizabeth II, George VI and George V are the heads of state of United Kingdom
Elizabeth II George VI George V
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:common_name . resource:United_Kingdom property:head_of_state ?z }
[]
Clarification
Simple Question|Single Entity|Indirect
Q269412
P466
Q3947
USER
Which house is inhabited by that person ?
(c(Q3947),P466,Q269412)
action filter_type
action find_reverse
entity Q269412
relation P466
type Q3947
[{'concept': 'Q3947'}, 'P466', 'Q269412']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q269412 . ?n rdf:type ontology:Q3947 }
George V
action filter_type
action find_reverse
entity George V
relation occupant
type house
[{'concept': 'house'}, 'occupant', 'George V']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:George_V . ?n rdf:type ontology:house }
[]
house
Clarification for simple ques.
Q9682
SYSTEM
Did you mean Elizabeth II ?
Q9682 Q280856 Q269412
(c(Q3947),P466,Q9682) (c(Q3947),P466,Q280856) (c(Q3947),P466,Q269412)
[ANSWER]
[{'concept': 'Q3947'}, 'P466', 'Q9682'] [{'concept': 'Q3947'}, 'P466', 'Q280856'] [{'concept': 'Q3947'}, 'P466', 'Q269412']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q269412 . ?n rdf:type ontology:Q3947 }
Elizabeth II George VI George V
Did you mean Elizabeth II ?
Elizabeth II
[{'concept': 'house'}, 'occupant', 'Elizabeth II'] [{'concept': 'house'}, 'occupant', 'George VI'] [{'concept': 'house'}, 'occupant', 'George V']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:George_V . ?n rdf:type ontology:house }
[]
Simple Question (Coreferenced)
USER
No, I meant George V. Could you tell me the answer for that?
(c(Q3947),P466,Q269412)
Q269412
[{'concept': 'Q3947'}, 'P466', 'Q269412']
[{'concept': 'house'}, 'occupant', 'George V']
[]
Q935116
SYSTEM
Sandringham House
Q935116
(c(Q3947),P466,Q269412)
action filter_type
action find_reverse
entity Q269412
relation P466
type Q3947
[ANSWER] is inhabited by that person
[{'concept': 'Q3947'}, 'P466', 'Q269412']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q269412 . ?n rdf:type ontology:Q3947 }
Sandringham House
Sandringham House is inhabited by that person
Sandringham House
action filter_type
action find_reverse
entity George V
relation occupant
type house
[{'concept': 'house'}, 'occupant', 'George V']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:George_V . ?n rdf:type ontology:house }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q280856 Q336913
P35
Q35798
USER
How many executive branches have George VI or Neelam Sanjiva Reddy as their head of state ?
(c(Q35798),P35,Q280856) (c(Q35798),P35,Q336913)
action count
action union
action filter_type
action find_reverse
entity Q280856
relation P35
type Q35798
action filter_type
action find_reverse
entity Q336913
relation P35
type Q35798
[{'concept': 'Q35798'}, 'P35', 'Q280856'] [{'concept': 'Q35798'}, 'P35', 'Q336913']
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { ?r property:P35 resource:Q280856 . ?r rdf:type ontology:Q35798 } UNION { ?r property:P35 resource:Q336913 . ?r rdf:type ontology:Q35798 } }
George VI Neelam Sanjiva Reddy
action count
action union
action filter_type
action find_reverse
entity George VI
relation head of state
type executive branch
action filter_type
action find_reverse
entity Neelam Sanjiva Reddy
relation head of state
type executive branch
[{'concept': 'executive branch'}, 'head of state', 'George VI'] [{'concept': 'executive branch'}, 'head of state', 'Neelam Sanjiva Reddy']
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { ?r property:head_of_state resource:George_VI . ?r rdf:type ontology:executive_branch } UNION { ?r property:head_of_state resource:Neelam_Sanjiva_Reddy . ?r rdf:type ontology:executive_branch } }
[]
executive branch
SYSTEM
3
Q7784879 Q15933364 Q5589386
(c(Q35798),P35,Q280856) (c(Q35798),P35,Q336913)
action count
action union
action filter_type
action find_reverse
entity Q280856
relation P35
type Q35798
action filter_type
action find_reverse
entity Q336913
relation P35
type Q35798
[ANSWER]
[{'concept': 'Q35798'}, 'P35', 'Q280856'] [{'concept': 'Q35798'}, 'P35', 'Q336913']
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { ?r property:P35 resource:Q280856 . ?r rdf:type ontology:Q35798 } UNION { ?r property:P35 resource:Q336913 . ?r rdf:type ontology:Q35798 } }
Third Indira Gandhi Ministry Charan Singh Ministry Government of the 9th Dáil
3
action count
action union
action filter_type
action find_reverse
entity George VI
relation head of state
type executive branch
action filter_type
action find_reverse
entity Neelam Sanjiva Reddy
relation head of state
type executive branch
[{'concept': 'executive branch'}, 'head of state', 'George VI'] [{'concept': 'executive branch'}, 'head of state', 'Neelam Sanjiva Reddy']
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { ?r property:head_of_state resource:George_VI . ?r rdf:type ontology:executive_branch } UNION { ?r property:head_of_state resource:Neelam_Sanjiva_Reddy . ?r rdf:type ontology:executive_branch } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q232
P840
Q15617994 Q2342494 Q166142
USER
How many administrative territories are the narrative locations of less number of collectables and applications than Kazakhstan ?
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q232
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?a WHERE { { ?g property:P840 ?a . ?a rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q166142 . ?g property:P840 ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { { ?d rdf:type ontology:Q2342494 } UNION { ?d rdf:type ontology:Q166142 } } . ?d property:P840 resource:Q232 } } . FILTER ( ?w < ?r ) }
Kazakhstan
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Kazakhstan
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?a WHERE { { ?g property:narrative_location ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:collectable } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:application . ?g property:narrative_location ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { { ?d rdf:type ontology:collectable } UNION { ?d rdf:type ontology:application } } . ?d property:narrative_location resource:Kazakhstan } } . FILTER ( ?w < ?r ) }
[]
designation for an administrative territorial entity collectable application
SYSTEM
72
Q377277 Q804 Q801 Q278221 Q186115 Q3278 Q262 Q189 Q47428 Q18021 Q842 Q36678 Q710 Q717 Q1460 Q258 Q790 Q884 Q165040 Q241 Q232782 Q244 Q12515 Q37 Q34 Q39 Q58477 Q769680 Q12798 Q236 Q12538 Q1093 Q20 Q1860611 Q27 Q913434 Q127043 Q1029 Q1028 Q1458 Q91217 Q1452 Q163966 Q12700 Q2336399 Q3207 Q1030 Q191 Q962 Q159689 Q114 Q41158 Q213 Q517107 Q217 Q912 Q2107 Q1007 Q14859 Q2742 Q836 Q77 Q774 Q1019 Q1014 Q1273 Q1011 Q12620 Q800 Q12545 Q53216 Q6247
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q232
relation P840
type Q2342494
type Q166142
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?a WHERE { { ?g property:P840 ?a . ?a rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q166142 . ?g property:P840 ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { { ?d rdf:type ontology:Q2342494 } UNION { ?d rdf:type ontology:Q166142 } } . ?d property:P840 resource:Q232 } } . FILTER ( ?w < ?r ) }
Glückstadt Panama Israel Berchtesgaden Montmartre Charente-Maritime Algeria Iceland Valdobbiadene Biella Oman West Bank Kiribati Venezuela Sicily South Africa Haiti South Korea Duchy of Parma Cuba Portofino Barbados Gard Lithuania Sweden Switzerland Capua Bornholm Vendée Montenegro Haute-Garonne Limburg Norway Viby Ireland Les Halles Garmisch-Partenkirchen Mozambique Morocco Calabria Montepulciano Basilicata Mitte Hautes-Pyrénées Baluchistan Aude Namibia Estonia Benin Bomarzo Kenya Cortina d'Ampezzo Czech Republic Rudolstadt Republic of Moldova Mali Wuppertal Guinea-Bissau Ansbach Münster Myanmar Uruguay Guatemala Madagascar Liberia Tuscany Cape Verde Mayenne Costa Rica Hérault Aquileia Mantua
72
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Kazakhstan
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?a WHERE { { ?g property:narrative_location ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:collectable } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:application . ?g property:narrative_location ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { { ?d rdf:type ontology:collectable } UNION { ?d rdf:type ontology:application } } . ?d property:narrative_location resource:Kazakhstan } } . FILTER ( ?w < ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2009
P840
Q15617994 Q2342494 Q166142
USER
And how about Yukon?
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q2009
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?x ) WHERE { VALUES ( ?t ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?k rdf:type ?t } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P840 resource:Q2009 . { { ?r rdf:type ontology:Q2342494 } UNION { ?r rdf:type ontology:Q166142 } } } } . FILTER ( ?x < ?f ) }
Yukon
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Yukon
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?x ) WHERE { VALUES ( ?t ) { ( ontology:collectable ) ( ontology:application ) } . ?k rdf:type ?t } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:narrative_location resource:Yukon . { { ?r rdf:type ontology:collectable } UNION { ?r rdf:type ontology:application } } } } . FILTER ( ?x < ?f ) }
[]
designation for an administrative territorial entity collectable application
SYSTEM
114
Q377277 Q804 Q801 Q278221 Q186115 Q3278 Q262 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q711 Q710 Q717 Q837 Q252 Q1460 Q403 Q258 Q45 Q790 Q884 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q37 Q36 Q34 Q928 Q39 Q58477 Q423 Q733 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q20 Q1044 Q1860611 Q1041 Q27 Q913434 Q127043 Q1027 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q114 Q41158 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q77 Q774 Q948 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q6247
(c(Q2342494)|c(Q166142),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q2009
relation P840
type Q2342494
type Q166142
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?x ) WHERE { VALUES ( ?t ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?k rdf:type ?t } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P840 resource:Q2009 . { { ?r rdf:type ontology:Q2342494 } UNION { ?r rdf:type ontology:Q166142 } } } } . FILTER ( ?x < ?f ) }
Glückstadt Panama Israel Berchtesgaden Montmartre Charente-Maritime Algeria Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Mongolia Kiribati Venezuela Nepal Indonesia Sicily Serbia South Africa Portugal Haiti South Korea Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Lithuania Poland Sweden Philippines Switzerland Capua North Korea Paraguay Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Norway Sierra Leone Viby Senegal Ireland Les Halles Garmisch-Partenkirchen Mauritius Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Kenya Cortina d'Ampezzo Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Uruguay Guatemala Tunisia Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Mantua
114
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Yukon
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?x ) WHERE { VALUES ( ?t ) { ( ontology:collectable ) ( ontology:application ) } . ?k rdf:type ?t } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:narrative_location resource:Yukon . { { ?r rdf:type ontology:collectable } UNION { ?r rdf:type ontology:application } } } } . FILTER ( ?x < ?f ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P669
Q79007 Q3947
USER
Which streets are the locations of max number of houses ?
(c(Q3947),P669,Q17518281)
action argmax
action find_reverse_tuple_counts
relation P669
type Q79007
type Q3947
[{'concept': 'Q3947'}, 'P669', 'Q17518281']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?v ) { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?q ) WHERE { ?n rdf:type ontology:Q3947 . ?c rdf:type ontology:Q79007 . ?n property:P669 ?c } GROUP BY ?c } } . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P669 ?k . ?t rdf:type ontology:Q3947 . ?k rdf:type ontology:Q79007 } GROUP BY ?k } . FILTER ( ?u = ?v ) }
action argmax
action find_reverse_tuple_counts
relation located on street
type street
type house
[{'concept': 'house'}, 'located on street', 'cours Saint-Pierre']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?v ) { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?q ) WHERE { ?n rdf:type ontology:house . ?c rdf:type ontology:street . ?n property:located_on_street ?c } GROUP BY ?c } } . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:located_on_street ?k . ?t rdf:type ontology:house . ?k rdf:type ontology:street } GROUP BY ?k } . FILTER ( ?u = ?v ) }
[]
street house
Q2873916 Q109858
SYSTEM
avenue de Friedland, Fifth Avenue
Q2873916 Q109858
(c(Q3947),P669,Q17518281)
action argmax
action find_reverse_tuple_counts
relation P669
type Q79007
type Q3947
[ANSWERS] are the locations of max number of houses
[{'concept': 'Q3947'}, 'P669', 'Q17518281']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?v ) { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?q ) WHERE { ?n rdf:type ontology:Q3947 . ?c rdf:type ontology:Q79007 . ?n property:P669 ?c } GROUP BY ?c } } . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P669 ?k . ?t rdf:type ontology:Q3947 . ?k rdf:type ontology:Q79007 } GROUP BY ?k } . FILTER ( ?u = ?v ) }
avenue de Friedland Fifth Avenue
Avenue de Friedland and Fifth Avenue are the locations of max number of houses
avenue de Friedland Fifth Avenue
action argmax
action find_reverse_tuple_counts
relation located on street
type street
type house
[{'concept': 'house'}, 'located on street', 'cours Saint-Pierre']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?v ) { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?q ) WHERE { ?n rdf:type ontology:house . ?c rdf:type ontology:street . ?n property:located_on_street ?c } GROUP BY ?c } } . { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:located_on_street ?k . ?t rdf:type ontology:house . ?k rdf:type ontology:street } GROUP BY ?k } . FILTER ( ?u = ?v ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q280856
P410
Q4189293
USER
Which title has George VI achieved ?
(Q280856,P410,c(Q4189293))
action filter_type
action find
entity Q280856
relation P410
type Q4189293
['Q280856', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?k WHERE { resource:Q280856 property:P410 ?k . ?k rdf:type ontology:Q4189293 }
George VI
action filter_type
action find
entity George VI
relation military rank
type title
['George VI', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?k WHERE { resource:George_VI property:military_rank ?k . ?k rdf:type ontology:title }
[]
title
Q2703373
SYSTEM
field marshal
Q2703373
(Q280856,P410,c(Q4189293))
action filter_type
action find
entity Q280856
relation P410
type Q4189293
George VI has achieved the [ANSWER]
['Q280856', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?k WHERE { resource:Q280856 property:P410 ?k . ?k rdf:type ontology:Q4189293 }
field marshal
George VI has achieved the field marshal
field marshal
action filter_type
action find
entity George VI
relation military rank
type title
['George VI', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?k WHERE { resource:George_VI property:military_rank ?k . ?k rdf:type ontology:title }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15068041
Q4189293
USER
And also tell me about Ivan Kabitsin?
(Q15068041,P410,c(Q4189293))
action filter_type
action find
entity Q15068041
relation P410
type Q4189293
['Q15068041', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?a WHERE { resource:Q15068041 property:P410 ?a . ?a rdf:type ontology:Q4189293 }
Ivan Kabitsin
action filter_type
action find
entity Ivan Kabitsin
relation military rank
type title
['Ivan Kabitsin', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?a WHERE { resource:Ivan_Kabitsin property:military_rank ?a . ?a rdf:type ontology:title }
[]
title
Q104680
SYSTEM
colonel
Q104680
(Q15068041,P410,c(Q4189293))
action filter_type
action find
entity Q15068041
relation P410
type Q4189293
[ANSWER]
['Q15068041', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?a WHERE { resource:Q15068041 property:P410 ?a . ?a rdf:type ontology:Q4189293 }
colonel
colonel
action filter_type
action find
entity Ivan Kabitsin
relation military rank
type title
['Ivan Kabitsin', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?a WHERE { resource:Ivan_Kabitsin property:military_rank ?a . ?a rdf:type ontology:title }
[]