Simple Question (Direct)
Simple Question
Q366317
P19
Q56061
USER
Which administrative territory is the birthplace of Luis A. Ferré ?
(Q366317,P19,c(Q56061))
action filter_type
action find
entity Q366317
relation P19
type Q56061
['Q366317', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q366317 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Luis A. Ferré
action filter_type
action find
entity Luis A. Ferré
relation place of birth
type administrative territorial entity
['Luis A. Ferré', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Luis_A._Ferré property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q864024
SYSTEM
Ponce
Q864024
(Q366317,P19,c(Q56061))
action filter_type
action find
entity Q366317
relation P19
type Q56061
[ANSWER] is the birthplace of Luis A. Ferré
['Q366317', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q366317 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Ponce
Ponce is the birthplace of Luis A. Ferré
Ponce
action filter_type
action find
entity Luis A. Ferré
relation place of birth
type administrative territorial entity
['Luis A. Ferré', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Luis_A._Ferré property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q864024
P17
Q15617994
USER
Which administrative territory does that administrative territory belong to ?
(Q864024,P17,c(Q15617994))
action filter_type
action find
entity Q864024
relation P17
type Q15617994
['Q864024', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q864024 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Ponce
action filter_type
action find
entity Ponce
relation country
type designation for an administrative territorial entity
['Ponce', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Ponce property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q864024,P17,c(Q15617994))
action filter_type
action find
entity Q864024
relation P17
type Q15617994
That administrative territory belongs to [ANSWER]
['Q864024', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q864024 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
United States of America
That administrative territory belongs to United States of America
United States of America
action filter_type
action find
entity Ponce
relation country
type designation for an administrative territorial entity
['Ponce', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Ponce property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with atleast 26 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 26
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?m >= 26 ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?m ) WHERE { ?b rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?b property:P530 ?k } GROUP BY ?b } }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?m >= 26 ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?m ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?k } GROUP BY ?b } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q159 Q155 Q30 Q38
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 26
[ANSWERS] have diplomatic relations with atleast 26 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?m >= 26 ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?m ) WHERE { ?b rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?b property:P530 ?k } GROUP BY ?b } }
Russia Brazil United States of America Italy
Italy, Brazil and United States of America have diplomatic relations with atleast 26 administrative territories
Italy Brazil United States of America
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 26
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?m >= 26 ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?m ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?k } GROUP BY ?b } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1998041
P530
Q15617994
USER
Do Nordheim have ambassadorial relations with those ones ?
(Q1998041,P530,Q38) (Q1998041,P530,Q155) (Q1998041,P530,Q30)
action is_in
entity prev_answer
action find
entity Q1998041
relation P530
['Q1998041', 'P530', 'Q38'] ['Q1998041', 'P530', 'Q155'] ['Q1998041', 'P530', 'Q30']
ASK WHERE { VALUES ( ?k ) { ( resource:Q159 ) ( resource:Q155 ) ( resource:Q30 ) } . resource:Q1998041 property:P530 ?k }
Nordheim
action is_in
entity prev_answer
action find
entity Nordheim
relation diplomatic relation
['Nordheim', 'diplomatic relation', 'Italy'] ['Nordheim', 'diplomatic relation', 'Brazil'] ['Nordheim', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?k ) { ( resource:Russia ) ( resource:Brazil ) ( resource:United_States_of_America ) } . resource:Nordheim property:diplomatic_relation ?k }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1998041,P530,Q38) (Q1998041,P530,Q155) (Q1998041,P530,Q30)
action is_in
entity prev_answer
action find
entity Q1998041
relation P530
[ANSWER]
['Q1998041', 'P530', 'Q38'] ['Q1998041', 'P530', 'Q155'] ['Q1998041', 'P530', 'Q30']
ASK WHERE { VALUES ( ?k ) { ( resource:Q159 ) ( resource:Q155 ) ( resource:Q30 ) } . resource:Q1998041 property:P530 ?k }
No
action is_in
entity prev_answer
action find
entity Nordheim
relation diplomatic relation
['Nordheim', 'diplomatic relation', 'Italy'] ['Nordheim', 'diplomatic relation', 'Brazil'] ['Nordheim', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?k ) { ( resource:Russia ) ( resource:Brazil ) ( resource:United_States_of_America ) } . resource:Nordheim property:diplomatic_relation ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P610
Q14524493
USER
Which is the zenith of United States of America ?
(Q30,P610,c(Q14524493))
action filter_type
action find
entity Q30
relation P610
type Q14524493
['Q30', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q14524493 . resource:Q30 property:P610 ?p }
United States of America
action filter_type
action find
entity United States of America
relation highest point
type terrain
['United States of America', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:terrain . resource:United_States_of_America property:highest_point ?p }
[]
terrain
Q130018
SYSTEM
Denali
Q130018
(Q30,P610,c(Q14524493))
action filter_type
action find
entity Q30
relation P610
type Q14524493
The zenith of United States of America is [ANSWER]
['Q30', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q14524493 . resource:Q30 property:P610 ?p }
Denali
The zenith of United States of America is Denali
Denali
action filter_type
action find
entity United States of America
relation highest point
type terrain
['United States of America', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:terrain . resource:United_States_of_America property:highest_point ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1295
Q14524493
USER
And also tell me about Dortmund?
(Q1295,P610,c(Q14524493))
action filter_type
action find
entity Q1295
relation P610
type Q14524493
['Q1295', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q14524493 . resource:Q1295 property:P610 ?m }
Dortmund
action filter_type
action find
entity Dortmund
relation highest point
type terrain
['Dortmund', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:terrain . resource:Dortmund property:highest_point ?m }
[]
terrain
Q1776635
SYSTEM
Klusenberg
Q1776635
(Q1295,P610,c(Q14524493))
action filter_type
action find
entity Q1295
relation P610
type Q14524493
[ANSWER]
['Q1295', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q14524493 . resource:Q1295 property:P610 ?m }
Klusenberg
Klusenberg
action filter_type
action find
entity Dortmund
relation highest point
type terrain
['Dortmund', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:terrain . resource:Dortmund property:highest_point ?m }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P3173
Q14524493 Q811979
USER
Which architectural structures contain views of max number of terrains ?
(c(Q811979),P3173,c(Q14524493))
action argmax
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?n ) WHERE { ?a property:P3173 ?i . ?a rdf:type ontology:Q811979 . ?i rdf:type ontology:Q14524493 } GROUP BY ?a } } . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?f ) WHERE { ?l property:P3173 ?x . ?l rdf:type ontology:Q811979 . ?x rdf:type ontology:Q14524493 } GROUP BY ?l } . FILTER ( ?f = ?e ) }
action argmax
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?n ) WHERE { ?a property:offers_view_on ?i . ?a rdf:type ontology:architectural_structure . ?i rdf:type ontology:terrain } GROUP BY ?a } } . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?f ) WHERE { ?l property:offers_view_on ?x . ?l rdf:type ontology:architectural_structure . ?x rdf:type ontology:terrain } GROUP BY ?l } . FILTER ( ?f = ?e ) }
[]
terrain architectural structure
Q3108318 Q7088437 Q2433474
SYSTEM
Glacier Point, Olmsted Point, Tunnel View
Q3108318 Q7088437 Q2433474
(c(Q811979),P3173,c(Q14524493))
action argmax
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
[ANSWERS] contain views of max number of terrains
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?n ) WHERE { ?a property:P3173 ?i . ?a rdf:type ontology:Q811979 . ?i rdf:type ontology:Q14524493 } GROUP BY ?a } } . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?f ) WHERE { ?l property:P3173 ?x . ?l rdf:type ontology:Q811979 . ?x rdf:type ontology:Q14524493 } GROUP BY ?l } . FILTER ( ?f = ?e ) }
Glacier Point Olmsted Point Tunnel View
Glacier Point, Olmsted Point and Tunnel View contain views of max number of terrains
Glacier Point Olmsted Point Tunnel View
action argmax
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?e ) { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?n ) WHERE { ?a property:offers_view_on ?i . ?a rdf:type ontology:architectural_structure . ?i rdf:type ontology:terrain } GROUP BY ?a } } . { SELECT DISTINCT ?l ( COUNT ( ?x ) AS ?f ) WHERE { ?l property:offers_view_on ?x . ?l rdf:type ontology:architectural_structure . ?x rdf:type ontology:terrain } GROUP BY ?l } . FILTER ( ?f = ?e ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P530
Q15617994 Q56061
USER
How many administrative territories or administrative territories have ambassadorial relations with Brazil ?
(c(Q15617994),P530,Q155) (c(Q56061),P530,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q155
relation P530
type Q56061
[{'concept': 'Q15617994'}, 'P530', 'Q155'] [{'concept': 'Q56061'}, 'P530', 'Q155']
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q56061 ) } . ?n rdf:type ?p }
Brazil
action count
action union
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'administrative territorial entity'}, 'diplomatic relation', 'Brazil']
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:administrative_territorial_entity ) } . ?n rdf:type ?p }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
58
Q96 Q801 Q800 Q843 Q184 Q1029 Q822 Q241 Q419 Q244 Q668 Q414 Q574 Q142 Q145 Q458 Q148 Q783 Q17 Q30 Q36 Q79 Q77 Q38 Q733 Q739 Q423 Q717 Q1033 Q1016 Q1011 Q962 Q734 Q298 Q252 Q399 Q403 Q230 Q736 Q258 Q750 Q212 Q213 Q983 Q45 Q159 Q43 Q41 Q790 Q796 Q794 Q917 Q953 Q29 Q7159 Q958 Q1049 Q916
(c(Q15617994),P530,Q155) (c(Q56061),P530,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q155
relation P530
type Q56061
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q155'] [{'concept': 'Q56061'}, 'P530', 'Q155']
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { VALUES ( ?p ) { ( ontology:Q15617994 ) ( ontology:Q56061 ) } . ?n rdf:type ?p }
Mexico Israel Costa Rica Pakistan Belarus Mozambique Lebanon Cuba Peru Barbados India Argentina East Timor France United Kingdom European Union People's Republic of China Honduras Japan United States of America Poland Egypt Uruguay Italy Paraguay Colombia North Korea Venezuela Nigeria Libya Cape Verde Benin Guyana Chile Indonesia Armenia Serbia Georgia Ecuador South Africa Bolivia Ukraine Czech Republic Equatorial Guinea Portugal Russia Turkey Greece Haiti Iraq Iran Bhutan Zambia Spain African Union South Sudan Sudan Angola
58
action count
action union
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'administrative territorial entity'}, 'diplomatic relation', 'Brazil']
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { VALUES ( ?p ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:administrative_territorial_entity ) } . ?n rdf:type ?p }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q473972 Q1267889 Q15617994
USER
Which administrative territories have their location as max number of protected areas or waterways ?
(c(Q15617994),P706,c(Q473972)|c(Q1267889))
action argmax
action union
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action find_tuple_counts
relation P706
type Q15617994
type Q1267889
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q473972'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?o WHERE { { ?o property:P706 ?c . ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q473972 } UNION { ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1267889 . ?o property:P706 ?c } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?k WHERE { ?r rdf:type ?f . VALUES ( ?f ) { ( ontology:Q473972 ) ( ontology:Q1267889 ) } } GROUP BY ?k } . FILTER ( ?b = ?a ) }
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'protected area'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?o WHERE { { ?o property:located_on_terrain_feature ?c . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:protected_area } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:waterway . ?o property:located_on_terrain_feature ?c } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?k WHERE { ?r rdf:type ?f . VALUES ( ?f ) { ( ontology:protected_area ) ( ontology:waterway ) } } GROUP BY ?k } . FILTER ( ?b = ?a ) }
[]
protected area waterway designation for an administrative territorial entity
Q216422 Q24846 Q20837
SYSTEM
Samsø, Juist, Fanø
Q24846 Q216422 Q20837 Q25082
(c(Q15617994),P706,c(Q473972)|c(Q1267889))
action argmax
action union
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action find_tuple_counts
relation P706
type Q15617994
type Q1267889
[ANSWERS] have their location as max number of protected areas or waterways
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q473972'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?o WHERE { { ?o property:P706 ?c . ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q473972 } UNION { ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1267889 . ?o property:P706 ?c } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?k WHERE { ?r rdf:type ?f . VALUES ( ?f ) { ( ontology:Q473972 ) ( ontology:Q1267889 ) } } GROUP BY ?k } . FILTER ( ?b = ?a ) }
Juist Samsø Fanø Borkum
Samsø, Juist and Fanø have their location as max number of protected areas or waterways
Samsø Juist Fanø
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type waterway
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'protected area'}, {'concept': 'waterway'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?o WHERE { { ?o property:located_on_terrain_feature ?c . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:protected_area } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:waterway . ?o property:located_on_terrain_feature ?c } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?k WHERE { ?r rdf:type ?f . VALUES ( ?f ) { ( ontology:protected_area ) ( ontology:waterway ) } } GROUP BY ?k } . FILTER ( ?b = ?a ) }
[]