Simple Question (Direct)
Simple Question
Q3927012
P58
Q502895
USER
Who wrote the screenplay for The Legend of Lylah Clare ?
(Q3927012,P58,c(Q502895))
action filter_type
action find
entity Q3927012
relation P58
type Q502895
['Q3927012', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q3927012 property:P58 ?i }
The Legend of Lylah Clare
action filter_type
action find
entity The Legend of Lylah Clare
relation screenwriter
type common name
['The Legend of Lylah Clare', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:The_Legend_of_Lylah_Clare property:screenwriter ?i }
[]
common name
Q1634907
SYSTEM
Hugo Butler
Q1634907
(Q3927012,P58,c(Q502895))
action filter_type
action find
entity Q3927012
relation P58
type Q502895
[ANSWER] wrote the screenplay for The Legend of Lylah Clare
['Q3927012', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q3927012 property:P58 ?i }
Hugo Butler
Hugo Butler wrote the screenplay for The Legend of Lylah Clare
Hugo Butler
action filter_type
action find
entity The Legend of Lylah Clare
relation screenwriter
type common name
['The Legend of Lylah Clare', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:The_Legend_of_Lylah_Clare property:screenwriter ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1634907
P1411
Q4220917
USER
Which film award was that person a recipient of ?
(Q1634907,P1411,c(Q4220917))
action filter_type
action find
entity Q1634907
relation P1411
type Q4220917
['Q1634907', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?h WHERE { resource:Q1634907 property:P1411 ?h . ?h rdf:type ontology:Q4220917 }
Hugo Butler
action filter_type
action find
entity Hugo Butler
relation nominated for
type film award
['Hugo Butler', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?h WHERE { resource:Hugo_Butler property:nominated_for ?h . ?h rdf:type ontology:film_award }
[]
film award
Q504298
SYSTEM
Academy Award for Best Story
Q504298
(Q1634907,P1411,c(Q4220917))
action filter_type
action find
entity Q1634907
relation P1411
type Q4220917
The [ANSWER] was that person a recipient of
['Q1634907', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?h WHERE { resource:Q1634907 property:P1411 ?h . ?h rdf:type ontology:Q4220917 }
Academy Award for Best Story
The Academy Award for Best Story was that person a recipient of
Academy Award for Best Story
action filter_type
action find
entity Hugo Butler
relation nominated for
type film award
['Hugo Butler', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?h WHERE { resource:Hugo_Butler property:nominated_for ?h . ?h rdf:type ontology:film_award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1634907
P20
Q486972
USER
Where did Hugo Butler die ?
(Q1634907,P20,c(Q486972))
action filter_type
action find
entity Q1634907
relation P20
type Q486972
['Q1634907', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { resource:Q1634907 property:P20 ?p . ?p rdf:type ontology:Q486972 }
Hugo Butler
action filter_type
action find
entity Hugo Butler
relation place of death
type human settlement
['Hugo Butler', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { resource:Hugo_Butler property:place_of_death ?p . ?p rdf:type ontology:human_settlement }
[]
human settlement
Q34006
SYSTEM
Hollywood
Q34006
(Q1634907,P20,c(Q486972))
action filter_type
action find
entity Q1634907
relation P20
type Q486972
Hugo Butler died in [ANSWER]
['Q1634907', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { resource:Q1634907 property:P20 ?p . ?p rdf:type ontology:Q486972 }
Hollywood
Hugo Butler died in Hollywood
Hollywood
action filter_type
action find
entity Hugo Butler
relation place of death
type human settlement
['Hugo Butler', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { resource:Hugo_Butler property:place_of_death ?p . ?p rdf:type ontology:human_settlement }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19985048
Q486972
USER
And how about Giuseppe Pietrocola?
(Q19985048,P20,c(Q486972))
action filter_type
action find
entity Q19985048
relation P20
type Q486972
['Q19985048', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q486972 . resource:Q19985048 property:P20 ?r }
Giuseppe Pietrocola
action filter_type
action find
entity Giuseppe Pietrocola
relation place of death
type human settlement
['Giuseppe Pietrocola', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:human_settlement . resource:Giuseppe_Pietrocola property:place_of_death ?r }
[]
human settlement
Q1860399
SYSTEM
Sant'Agata sui Due Golfi
Q1860399
(Q19985048,P20,c(Q486972))
action filter_type
action find
entity Q19985048
relation P20
type Q486972
[ANSWER]
['Q19985048', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q486972 . resource:Q19985048 property:P20 ?r }
Sant'Agata sui Due Golfi
Sant'Agata sui Due Golfi
action filter_type
action find
entity Giuseppe Pietrocola
relation place of death
type human settlement
['Giuseppe Pietrocola', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:human_settlement . resource:Giuseppe_Pietrocola property:place_of_death ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P20
Q502895
USER
How many people have that human settlement as the location of death ?
(c(Q502895),P20,Q1860399)
action count
action filter_type
action find_reverse
entity Q1860399
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q1860399']
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P20 resource:Q1860399 . ?l rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Sant'Agata sui Due Golfi
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', "Sant'Agata sui Due Golfi"]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:place_of_death resource:Sant'Agata_sui_Due_Golfi . ?l rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q19966590 Q19985048
(c(Q502895),P20,Q1860399)
action count
action filter_type
action find_reverse
entity Q1860399
relation P20
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q1860399']
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:P20 resource:Q1860399 . ?l rdf:type ontology:Q502895 }
Floriano Pietrocola Giuseppe Pietrocola
2
action count
action filter_type
action find_reverse
entity Sant'Agata sui Due Golfi
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', "Sant'Agata sui Due Golfi"]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { ?l property:place_of_death resource:Sant'Agata_sui_Due_Golfi . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1860399
P17
Q15617994
USER
Which administrative territory is Sant'Agata sui Due Golfi situated in ?
(Q1860399,P17,c(Q15617994))
action filter_type
action find
entity Q1860399
relation P17
type Q15617994
['Q1860399', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q1860399 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Sant'Agata sui Due Golfi
action filter_type
action find
entity Sant'Agata sui Due Golfi
relation country
type designation for an administrative territorial entity
["Sant'Agata sui Due Golfi", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Sant'Agata_sui_Due_Golfi property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q1860399,P17,c(Q15617994))
action filter_type
action find
entity Q1860399
relation P17
type Q15617994
Sant ' Agata sui Due Golfi is situated in [ANSWER]
['Q1860399', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q1860399 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Italy
Sant ' Agata sui Due Golfi is situated in Italy
Italy
action filter_type
action find
entity Sant'Agata sui Due Golfi
relation country
type designation for an administrative territorial entity
["Sant'Agata sui Due Golfi", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Sant'Agata_sui_Due_Golfi property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6879026
Q15617994
USER
And what about Mississippi's 7th congressional district?
(Q6879026,P17,c(Q15617994))
action filter_type
action find
entity Q6879026
relation P17
type Q15617994
['Q6879026', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q6879026 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Mississippi's 7th congressional district
action filter_type
action find
entity Mississippi's 7th congressional district
relation country
type designation for an administrative territorial entity
["Mississippi's 7th congressional district", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Mississippi's_7th_congressional_district property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6879026,P17,c(Q15617994))
action filter_type
action find
entity Q6879026
relation P17
type Q15617994
[ANSWER]
['Q6879026', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q6879026 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Mississippi's 7th congressional district
relation country
type designation for an administrative territorial entity
["Mississippi's 7th congressional district", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Mississippi's_7th_congressional_district property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q1750029 Q16
P530
Q1048835
USER
Does that administrative territory have ambassadorial relations with Minas do Leão and Canada ?
(Q30,P530,Q1750029) (Q30,P530,Q16)
action is_in
entity Q30
action intersection
action find_reverse
entity Q1750029
relation P530
action find_reverse
entity Q16
relation P530
['Q30', 'P530', 'Q1750029'] ['Q30', 'P530', 'Q16']
ASK WHERE { resource:Q30 property:P530 resource:Q1750029 . resource:Q30 property:P530 resource:Q16 }
United States of America Minas do Leão Canada
action is_in
entity United States of America
action intersection
action find_reverse
entity Minas do Leão
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Minas do Leão'] ['United States of America', 'diplomatic relation', 'Canada']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Minas_do_Leão . resource:United_States_of_America property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q30,P530,Q1750029) (Q30,P530,Q16)
action is_in
entity Q30
action intersection
action find_reverse
entity Q1750029
relation P530
action find_reverse
entity Q16
relation P530
[ANSWER]
['Q30', 'P530', 'Q1750029'] ['Q30', 'P530', 'Q16']
ASK WHERE { resource:Q30 property:P530 resource:Q1750029 . resource:Q30 property:P530 resource:Q16 }
NO and YES respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Minas do Leão
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Minas do Leão'] ['United States of America', 'diplomatic relation', 'Canada']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Minas_do_Leão . resource:United_States_of_America property:diplomatic_relation resource:Canada }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q983
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with greater number of administrative territories than Equatorial Guinea ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q983
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?m ) WHERE { ?g property:P530 ?r . ?g rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q983 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?m > ?i ) }
Equatorial Guinea
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Equatorial Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?m ) WHERE { ?g property:diplomatic_relation ?r . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Equatorial_Guinea property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m > ?i ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
66
Q801 Q805 Q419 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q733 Q230 Q27 Q28 Q843 Q184 Q228 Q227 Q225 Q222 Q96 Q347 Q17 Q902 Q298 Q114 Q212 Q213 Q218 Q916 Q79 Q77 Q858 Q948 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q983
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?m ) WHERE { ?g property:P530 ?r . ?g rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q983 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?m > ?i ) }
Israel Yemen Peru India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Paraguay Georgia Ireland Hungary Pakistan Belarus Andorra Azerbaijan Bosnia and Herzegovina Albania Mexico Liechtenstein Japan Bangladesh Chile Kenya Ukraine Czech Republic Romania Angola Egypt Uruguay Syria Tunisia Libya Cape Verde Spain Zambia
66
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Equatorial Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?r ) AS ?m ) WHERE { ?g property:diplomatic_relation ?r . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Equatorial_Guinea property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m > ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q194037
P915
Q838948
USER
How many works of art were filmed in the location Italy or Seraing ?
(c(Q838948),P915,Q38) (c(Q838948),P915,Q194037)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P915
type Q838948
action filter_type
action find_reverse
entity Q194037
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q38'] [{'concept': 'Q838948'}, 'P915', 'Q194037']
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:P915 resource:Q38 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P915 resource:Q194037 . ?z rdf:type ontology:Q838948 } }
Italy Seraing
action count
action union
action filter_type
action find_reverse
entity Italy
relation filming location
type work of art
action filter_type
action find_reverse
entity Seraing
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Italy'] [{'concept': 'work of art'}, 'filming location', 'Seraing']
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:filming_location resource:Italy . ?z rdf:type ontology:work_of_art } UNION { ?z property:filming_location resource:Seraing . ?z rdf:type ontology:work_of_art } }
[]
work of art
SYSTEM
4
Q18602670 Q2072055 Q1383269 Q15631013
(c(Q838948),P915,Q38) (c(Q838948),P915,Q194037)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P915
type Q838948
action filter_type
action find_reverse
entity Q194037
relation P915
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P915', 'Q38'] [{'concept': 'Q838948'}, 'P915', 'Q194037']
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:P915 resource:Q38 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P915 resource:Q194037 . ?z rdf:type ontology:Q838948 } }
Spectre The Kid with a Bike Ex Everest
4
action count
action union
action filter_type
action find_reverse
entity Italy
relation filming location
type work of art
action filter_type
action find_reverse
entity Seraing
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Italy'] [{'concept': 'work of art'}, 'filming location', 'Seraing']
SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:filming_location resource:Italy . ?z rdf:type ontology:work_of_art } UNION { ?z property:filming_location resource:Seraing . ?z rdf:type ontology:work_of_art } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q271669 Q56061 Q486972
USER
Which human settlements are located in min number of landforms and administrative territories ?
(c(Q486972),P706,c(Q271669)|c(Q56061))
action argmin
action union
action find_tuple_counts
relation P706
type Q486972
type Q271669
action find_tuple_counts
relation P706
type Q486972
type Q56061
[{'concept': 'Q486972'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?t WHERE { { ?t property:P706 ?n . ?t rdf:type ontology:Q486972 . ?n rdf:type ontology:Q271669 } UNION { ?t property:P706 ?n . ?n rdf:type ontology:Q56061 . ?t rdf:type ontology:Q486972 } } GROUP BY ?t } . FILTER ( ?i = ?l ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?v WHERE { { ?v rdf:type ontology:Q486972 . ?g rdf:type ontology:Q271669 . ?v property:P706 ?g } UNION { ?v property:P706 ?g . ?v rdf:type ontology:Q486972 . ?g rdf:type ontology:Q56061 } } GROUP BY ?v } } }
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type human settlement
type landform
action find_tuple_counts
relation located on terrain feature
type human settlement
type administrative territorial entity
[{'concept': 'human settlement'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?t WHERE { { ?t property:located_on_terrain_feature ?n . ?t rdf:type ontology:human_settlement . ?n rdf:type ontology:landform } UNION { ?t property:located_on_terrain_feature ?n . ?n rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:human_settlement } } GROUP BY ?t } . FILTER ( ?i = ?l ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?v WHERE { { ?v rdf:type ontology:human_settlement . ?g rdf:type ontology:landform . ?v property:located_on_terrain_feature ?g } UNION { ?v property:located_on_terrain_feature ?g . ?v rdf:type ontology:human_settlement . ?g rdf:type ontology:administrative_territorial_entity } } GROUP BY ?v } } }
[]
landform administrative territorial entity human settlement
Q2916 Q2843 Q82500
SYSTEM
Osnabrück, Lübeck, St. Pölten
Q73151 Q5182017 Q1067867 Q1982027 Q15059248 Q15709335 Q1543659 Q15058060 Q4144268 Q1938652 Q12344051 Q15123377 Q2282756 Q881265 Q226726 Q4572703 Q7971580 Q73179 Q82500 Q15058273 Q1348300 Q3593263 Q1440032 Q512874 Q2146309 Q2512257 Q1235576 Q1296117 Q1643547 Q13377528 Q3593402 Q15812854 Q303734 Q2109613 Q562344 Q1241324 Q743908 Q638063 Q17468609 Q649957 Q1656425 Q18028211 Q17294324 Q649030 Q14805 Q18612782 Q5584067 Q1895943 Q1557491 Q17461395 Q679561 Q2031633 Q2285808 Q1741344 Q21039836 Q20898048 Q17461485 Q546339 Q3507 Q997023 Q26239886 Q17461393 Q2015465 Q17461542 Q1522297 Q851308 Q519717 Q5686334 Q1524629 Q1653952 Q696193 Q15057357 Q15139301 Q1014971 Q649494 Q7131792 Q2843 Q5123247 Q413420 Q2916 Q1003241 Q148114 Q19964370 Q2168982
(c(Q486972),P706,c(Q271669)|c(Q56061))
action argmin
action union
action find_tuple_counts
relation P706
type Q486972
type Q271669
action find_tuple_counts
relation P706
type Q486972
type Q56061
[ANSWERS] are located in min number of landforms and administrative territories
[{'concept': 'Q486972'}, 'P706', [{'concept': 'Q271669'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?t WHERE { { ?t property:P706 ?n . ?t rdf:type ontology:Q486972 . ?n rdf:type ontology:Q271669 } UNION { ?t property:P706 ?n . ?n rdf:type ontology:Q56061 . ?t rdf:type ontology:Q486972 } } GROUP BY ?t } . FILTER ( ?i = ?l ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?v WHERE { { ?v rdf:type ontology:Q486972 . ?g rdf:type ontology:Q271669 . ?v property:P706 ?g } UNION { ?v property:P706 ?g . ?v rdf:type ontology:Q486972 . ?g rdf:type ontology:Q56061 } } GROUP BY ?v } } }
Neuhaus im Solling Crane Flat Campground Sestiere of Venice Neuwerk Rehenbühl Gückelsberg Gratzfeld Müssighof Lerbach Mischelbach Weert Oderberg Siefenhoven Ruhlsdorf Zorge Brand Washington's Landing Silberborn St. Pölten Oderbrück Erberich Île aux Basques Neichen Gezira Island Retscheid Velau Eudenbach Efferoth Höhe Neuenmuhr Puget Island Griesbuck Aathal Monte Masoni Vilm Langendorf Filicudi Niederdorla Jüngsfeld Alicudi Ickern Streit (Erlenbach am Main) Eichtersheim Venetian Ghetto Kaufbeuren Wohn Goose Island Grande Île, Strasbourg Lohn Heinzenmühle Rübeland Orscheid Silberhütte Lürken Ziegelhütte Emsen Fallhaus Wiedensahl Marmstorf Brüngsberg Hügelmühle Prexelmühle An den Eichen Banzermühle Langenrehm Beutelmühle Mazzorbo Hayden Island Himberg IJburg Ecbatana Langlau Niederbonsfeld Burggrub Pfiffelbach Panther Hollow Lübeck City Island Ajvide Osnabrück Buke Zartwitz Schellhof Rottbitze
Osnabrück, Lübeck and St. Pölten are located in min number of landforms and administrative territories
Osnabrück Lübeck St. Pölten
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type human settlement
type landform
action find_tuple_counts
relation located on terrain feature
type human settlement
type administrative territorial entity
[{'concept': 'human settlement'}, 'located on terrain feature', [{'concept': 'landform'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) ?t WHERE { { ?t property:located_on_terrain_feature ?n . ?t rdf:type ontology:human_settlement . ?n rdf:type ontology:landform } UNION { ?t property:located_on_terrain_feature ?n . ?n rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:human_settlement } } GROUP BY ?t } . FILTER ( ?i = ?l ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) ?v WHERE { { ?v rdf:type ontology:human_settlement . ?g rdf:type ontology:landform . ?v property:located_on_terrain_feature ?g } UNION { ?v property:located_on_terrain_feature ?g . ?v rdf:type ontology:human_settlement . ?g rdf:type ontology:administrative_territorial_entity } } GROUP BY ?v } } }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P276
Q486972 Q1190554 Q34442
USER
Which human settlements are the place where greater number of events or roads are located than that human settlement ?
(c(Q1190554)|c(Q34442),P276,c(Q486972))
[[{'concept': 'Q1190554'}, {'concept': 'Q34442'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:Q17334923 ?y } . ?z rdf:type ontology:Q5416694 . ?y rdf:type ontology:Q486972 . ?x rdf:type ontology:Q34442 }
[[{'concept': 'event'}, {'concept': 'road'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:location ?y } . ?z rdf:type ontology:event . ?y rdf:type ontology:human_settlement . ?x rdf:type ontology:road }
[]
human settlement event road
Comparative|More/Less|Mult. entity type|Clarification
Q82500
SYSTEM
Did you mean St. Pölten ?
(c(Q1190554)|c(Q34442),P276,c(Q486972))
[ANSWER]
[[{'concept': 'Q1190554'}, {'concept': 'Q34442'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:Q17334923 ?y } . ?z rdf:type ontology:Q5416694 . ?y rdf:type ontology:Q486972 . ?x rdf:type ontology:Q34442 }
Did you mean St. Pölten ?
St. Pölten
[[{'concept': 'event'}, {'concept': 'road'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:location ?y } . ?z rdf:type ontology:event . ?y rdf:type ontology:human_settlement . ?x rdf:type ontology:road }
[]
Comparative Reasoning (All)
USER
No, I meant Osnabrück. Could you tell me the answer for that?
(c(Q1190554)|c(Q34442),P276,c(Q486972))
Q2916
[[{'concept': 'Q1190554'}, {'concept': 'Q34442'}], 'P276', {'concept': 'Q486972'}]
[[{'concept': 'event'}, {'concept': 'road'}], 'location', {'concept': 'human settlement'}]
[]
Q1792 Q1799 Q14835
SYSTEM
Gdańsk, Wrocław, Bautzen
Q81175 Q1865919 Q7476191 Q1279445 Q2099544 Q73084 Q2141559 Q2651676 Q325652 Q81276 Q2181664 Q192508 Q1862257 Q73348 Q2203983 Q2652634 Q3112112 Q2102925 Q924091 Q1987684 Q26089373 Q494359 Q2565664 Q991009 Q892667 Q4597611 Q1342525 Q884451 Q1799 Q1792 Q2801571 Q106274 Q1278906 Q585145 Q1179726 Q1087187 Q73099 Q12344051 Q2155656 Q2268243 Q1002859 Q2777485 Q2613329 Q478612 Q259184 Q26109843 Q2276202 Q1615032 Q2435152 Q72991 Q1618053 Q178317 Q19904265 Q281527 Q3299324 Q2891187 Q4326710 Q2473420 Q60475 Q892677 Q3134986 Q2303485 Q2640642 Q2245467 Q248483 Q2065987 Q568611 Q955 Q73817 Q2145452 Q1615365 Q81159 Q132499 Q1003585 Q3184100 Q26692116 Q1936132 Q215633 Q76996 Q14389109 Q2945660 Q429309 Q2054185 Q1292442 Q729552 Q1025685 Q2234389 Q894343 Q2439172 Q26109110 Q624352 Q465833 Q9879 Q3182086 Q1923836 Q3303930 Q81100 Q163319 Q2275291 Q26089053 Q2242438 Q1007172 Q2483283 Q21054 Q461287 Q2593455 Q26089631 Q81186 Q124705 Q2848548 Q432917 Q14835 Q2784508 Q81220 Q200441 Q850834 Q882086 Q73501 Q312776 Q1326964 Q1533756 Q2202653 Q2108704 Q76937 Q927604 Q2456747 Q26089603 Q2558755 Q41976 Q41974 Q7399840
(c(Q1190554)|c(Q34442),P276,c(Q486972))
[ANSWERS] are the place where greater number of events or roads are located than that human settlement
[[{'concept': 'Q1190554'}, {'concept': 'Q34442'}], 'P276', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { { { ?z property:Q17334923 ?y } UNION { ?x property:Q17334923 ?y } } . ?z rdf:type ontology:Q5416694 . ?y rdf:type ontology:Q486972 . ?x rdf:type ontology:Q34442 }
Steenwijk Rivierenbuurt Hortusbuurt Friesdorf Plittersdorf Huissen Mastenbroek Zeeheldenbuurt Tinian Monnickendam Nieuwpoort, South Holland Bergen op Zoom Megen IJlst Rüngsdorf Paddepoel Gramsbergen Waterrijk Goedereede Niederdollendorf Binnenstad-Oost Rijssen Weststadt Brouwershaven Bonn-Castell Science Park Amsterdam Gronau Mehlem Wrocław Gdańsk Molenvliet Legnica IJzendijke Dara De Aker Buren Sloten Weert Rivierenbuurt Selhof De Baarsjes Snel en Polanen Herewegbuurt Amsterdam Oud-West Winkel De Wijert-Zuid De Hoogte Oostburg Scheepvaartkwartier Groenlo Terborg Oberkassel Bomen- en Bloemenbuurt Wan Chai Oisterwijk Batenburg Slotermeer Echt, Netherlands Harlingen Bonn-Zentrum Heusden Woudrichem Stadsparkwijk Ulgersmaborg Oberdollendorf Sluis Cannae Aardenburg Winschoten Beijum Ootmarsum Hasselt Höchst Osdorp Veere Oranjebuurt Watergraafsmeer Łomża Klundert Steenbergen Oosterparkwijk Grootebroek Goor Suomenlinna Kamppi Borculo Gravenburg Bos en Lommer Spaarndam-West Gorechtbuurt Hollabrunn Schagen Waalwijk Kortgene Staatsliedenkwartier Medemblik Hulst De Pijp Schildersbuurt Binnenstad-Noord Museumkwartier Delden Lewenborg Montfort Ostrołęka Oosterpoortwijk Binnenstad-Zuid Genemuiden Südstadt Schilderskwartier Alt-Godesberg Bautzen Hoogwoud Goes Antioch Beuel-Mitte Nordstadt Bredevoort Tholen Hochkreuz Godesberg-Villenviertel Römlinghoven Selwerd Willemstad, North Brabant Bronkhorst Vinkhuizen Binnenstad-West Slotervaart Dokkum Franeker Sai Ying Pun
Gdańsk, Wrocław and Bautzen are the place where greater number of events or roads are located than that human settlement
Gdańsk Wrocław Bautzen
[[{'concept': 'event'}, {'concept': 'road'}], 'location', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { { { ?z property:location ?y } UNION { ?x property:location ?y } } . ?z rdf:type ontology:event . ?y rdf:type ontology:human_settlement . ?x rdf:type ontology:road }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1792 Q1799 Q14835
P190
Q515
USER
Which cities are the sister cities of those human settlements ?
(Q1792,P190,c(Q515)) (Q1799,P190,c(Q515)) (Q14835,P190,c(Q515))
action filter_type
action find
entity prev_answer
relation P190
type Q515
['Q1792', 'P190', {'concept': 'Q515'}] ['Q1799', 'P190', {'concept': 'Q515'}] ['Q14835', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?f ) { ( resource:Q81175 ) ( resource:Q1865919 ) ( resource:Q7476191 ) } . ?f property:P190 ?e . ?e rdf:type ontology:Q515 }
Gdańsk Wrocław Bautzen
action filter_type
action find
entity prev_answer
relation sister city
type city
['Gdańsk', 'sister city', {'concept': 'city'}] ['Wrocław', 'sister city', {'concept': 'city'}] ['Bautzen', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?f ) { ( resource:Steenwijk ) ( resource:Rivierenbuurt ) ( resource:Hortusbuurt ) } . ?f property:sister_city ?e . ?e rdf:type ontology:city }
[]
city
Q1731 Q23482 Q1721
SYSTEM
Dresden, Marseille, Wiesbaden
Q23482 Q1731 Q1721 Q3852 Q2966
(Q1792,P190,c(Q515)) (Q1799,P190,c(Q515)) (Q14835,P190,c(Q515))
action filter_type
action find
entity prev_answer
relation P190
type Q515
[ANSWERS] are the sister cities of those human settlements
['Q1792', 'P190', {'concept': 'Q515'}] ['Q1799', 'P190', {'concept': 'Q515'}] ['Q14835', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?f ) { ( resource:Q81175 ) ( resource:Q1865919 ) ( resource:Q7476191 ) } . ?f property:P190 ?e . ?e rdf:type ontology:Q515 }
Marseille Dresden Wiesbaden Worms Heidelberg
Dresden, Marseille and Wiesbaden are the sister cities of those human settlements
Dresden Marseille Wiesbaden
action filter_type
action find
entity prev_answer
relation sister city
type city
['Gdańsk', 'sister city', {'concept': 'city'}] ['Wrocław', 'sister city', {'concept': 'city'}] ['Bautzen', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?f ) { ( resource:Steenwijk ) ( resource:Rivierenbuurt ) ( resource:Hortusbuurt ) } . ?f property:sister_city ?e . ?e rdf:type ontology:city }
[]