Simple Question (Direct)
Simple Question
Q1376363
P106
Q12737077
USER
What is the profession of Siniša Ubiparipović ?
(Q1376363,P106,c(Q12737077))
action filter_type
action find
entity Q1376363
relation P106
type Q12737077
['Q1376363', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1376363 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Siniša Ubiparipović
action filter_type
action find
entity Siniša Ubiparipović
relation occupation
type occupation
['Siniša Ubiparipović', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Siniša_Ubiparipović property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q1376363,P106,c(Q12737077))
action filter_type
action find
entity Q1376363
relation P106
type Q12737077
The profession of Siniša Ubiparipović is an [ANSWER]
['Q1376363', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1376363 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
association football player
The profession of Siniša Ubiparipović is an association football player
association football player
action filter_type
action find
entity Siniša Ubiparipović
relation occupation
type occupation
['Siniša Ubiparipović', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Siniša_Ubiparipović property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1376363
P641
Q349
USER
Which sport was Siniša Ubiparipović a part of ?
(Q1376363,P641,c(Q349))
action filter_type
action find
entity Q1376363
relation P641
type Q349
['Q1376363', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q1376363 property:P641 ?r }
Siniša Ubiparipović
action filter_type
action find
entity Siniša Ubiparipović
relation sport
type sport
['Siniša Ubiparipović', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Siniša_Ubiparipović property:sport ?r }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1376363,P641,c(Q349))
action filter_type
action find
entity Q1376363
relation P641
type Q349
The [ANSWER] was Siniša Ubiparipović a part of
['Q1376363', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q1376363 property:P641 ?r }
association football
The association football was Siniša Ubiparipović a part of
association football
action filter_type
action find
entity Siniša Ubiparipović
relation sport
type sport
['Siniša Ubiparipović', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Siniša_Ubiparipović property:sport ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1376363
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q1376363
relation P27
type Q15617994
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1376363 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Siniša Ubiparipović
action filter_type
action find
entity Siniša Ubiparipović
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Siniša_Ubiparipović property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q225
SYSTEM
Bosnia and Herzegovina
Q225
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q1376363
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q1376363 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Bosnia and Herzegovina
Bosnia and Herzegovina is the country of citizenship of that person
Bosnia and Herzegovina
action filter_type
action find
entity Siniša Ubiparipović
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Siniša_Ubiparipović property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q225
P47
Q15617994
USER
Which administrative territories have a shared border with that one ?
(Q225,P47,c(Q15617994))
action filter_type
action find
entity Q225
relation P47
type Q15617994
['Q225', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q225 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Bosnia and Herzegovina
action filter_type
action find
entity Bosnia and Herzegovina
relation shares border with
type designation for an administrative territorial entity
['Bosnia and Herzegovina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Bosnia_and_Herzegovina property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403 Q236 Q224
SYSTEM
Serbia, Montenegro, Croatia
Q403 Q236 Q224
(Q225,P47,c(Q15617994))
action filter_type
action find
entity Q225
relation P47
type Q15617994
[ANSWERS] have a shared border with that one
['Q225', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q225 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Serbia Montenegro Croatia
Serbia, Montenegro and Croatia have a shared border with that one
Serbia Montenegro Croatia
action filter_type
action find
entity Bosnia and Herzegovina
relation shares border with
type designation for an administrative territorial entity
['Bosnia and Herzegovina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Bosnia_and_Herzegovina property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q403 Q236 Q224
P17
Q15617994
USER
Which administrative territories are situated in those ones ?
(c(Q15617994),P17,Q403) (c(Q15617994),P17,Q236) (c(Q15617994),P17,Q224)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q15617994
[{'concept': 'Q15617994'}, 'P17', 'Q403'] [{'concept': 'Q15617994'}, 'P17', 'Q236'] [{'concept': 'Q15617994'}, 'P17', 'Q224']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . VALUES ( ?c ) { ( resource:Q403 ) ( resource:Q236 ) ( resource:Q224 ) } . ?z property:P17 ?c }
Serbia Montenegro Croatia
action filter_type
action find_reverse
entity prev_answer
relation country
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Serbia'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Montenegro'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Croatia']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?c ) { ( resource:Serbia ) ( resource:Montenegro ) ( resource:Croatia ) } . ?z property:country ?c }
[]
designation for an administrative territorial entity
Q403 Q224 Q236
SYSTEM
Serbia, Croatia, Montenegro
Q779764 Q2882583 Q403 Q59074 Q462461 Q17307448 Q854972 Q747470 Q1544186 Q236 Q5065666 Q7036766 Q7205044 Q3594312 Q7810213 Q1275228 Q1275237 Q887522 Q1275265 Q1275247 Q1173323 Q15279032 Q287296 Q128957 Q1276280 Q3129861 Q224 Q718103 Q3445123 Q2691975 Q262362 Q221086 Q1815788 Q83000
(c(Q15617994),P17,Q403) (c(Q15617994),P17,Q236) (c(Q15617994),P17,Q224)
action filter_type
action find_reverse
entity prev_answer
relation P17
type Q15617994
[ANSWERS] are situated in those ones
[{'concept': 'Q15617994'}, 'P17', 'Q403'] [{'concept': 'Q15617994'}, 'P17', 'Q236'] [{'concept': 'Q15617994'}, 'P17', 'Q224']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . VALUES ( ?c ) { ( resource:Q403 ) ( resource:Q236 ) ( resource:Q224 ) } . ?z property:P17 ?c }
Bački Breg Banjska Serbia Dragaš Bor Temišvarski-Krasovsky district Botoš Dimitrovgrad Gračanica, Kosovo Montenegro Cetinje District Nikšić District Pljevlja District Šula Titograd District Trešnjevka – sjever Donja Dubrava Šušnjevica Trešnjevka – jug Gornja Dubrava, Zagreb Josipdol Lučac-Manuš Podsused – Vrapče Gornji Grad – Medveščak Stenjevec Klarići Croatia Podsljeme Betina Kupina, Velika Kopanica Cetingrad Generalski Stol Tvrđa Draganić
Serbia, Croatia and Montenegro are situated in those ones
Serbia Croatia Montenegro
action filter_type
action find_reverse
entity prev_answer
relation country
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'country', 'Serbia'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Montenegro'] [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Croatia']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?c ) { ( resource:Serbia ) ( resource:Montenegro ) ( resource:Croatia ) } . ?z property:country ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q225
P30
Q2221906
USER
Where is Bosnia and Herzegovina located ?
(Q225,P30,c(Q2221906))
action filter_type
action find
entity Q225
relation P30
type Q2221906
['Q225', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q2221906 . resource:Q225 property:P30 ?o }
Bosnia and Herzegovina
action filter_type
action find
entity Bosnia and Herzegovina
relation continent
type geographic location
['Bosnia and Herzegovina', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:geographic_location . resource:Bosnia_and_Herzegovina property:continent ?o }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q225,P30,c(Q2221906))
action filter_type
action find
entity Q225
relation P30
type Q2221906
Bosnia and Herzegovina is located in [ANSWER]
['Q225', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q2221906 . resource:Q225 property:P30 ?o }
Europe
Bosnia and Herzegovina is located in Europe
Europe
action filter_type
action find
entity Bosnia and Herzegovina
relation continent
type geographic location
['Bosnia and Herzegovina', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:geographic_location . resource:Bosnia_and_Herzegovina property:continent ?o }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q224
P36
Q13220204
USER
What is the capital of Croatia ?
(Q224,P36,c(Q13220204))
action filter_type
action find
entity Q224
relation P36
type Q13220204
['Q224', 'P36', {'concept': 'Q13220204'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q13220204 . resource:Q224 property:P36 ?q }
Croatia
action filter_type
action find
entity Croatia
relation capital
type second-level administrative country subdivision
['Croatia', 'capital', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:second-level_administrative_country_subdivision . resource:Croatia property:capital ?q }
[]
second-level administrative country subdivision
Q1435
SYSTEM
Zagreb
Q1435
(Q224,P36,c(Q13220204))
action filter_type
action find
entity Q224
relation P36
type Q13220204
The capital of Croatia is [ANSWER]
['Q224', 'P36', {'concept': 'Q13220204'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q13220204 . resource:Q224 property:P36 ?q }
Zagreb
The capital of Croatia is Zagreb
Zagreb
action filter_type
action find
entity Croatia
relation capital
type second-level administrative country subdivision
['Croatia', 'capital', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:second-level_administrative_country_subdivision . resource:Croatia property:capital ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1435
P1427
Q15091377
USER
Which cycling race originates at that administrative country subdivision ?
(c(Q15091377),P1427,Q1435)
action filter_type
action find_reverse
entity Q1435
relation P1427
type Q15091377
[{'concept': 'Q15091377'}, 'P1427', 'Q1435']
SELECT DISTINCT ?j WHERE { ?j property:P1427 resource:Q1435 . ?j rdf:type ontology:Q15091377 }
Zagreb
action filter_type
action find_reverse
entity Zagreb
relation start point
type cycling race
[{'concept': 'cycling race'}, 'start point', 'Zagreb']
SELECT DISTINCT ?j WHERE { ?j property:start_point resource:Zagreb . ?j rdf:type ontology:cycling_race }
[]
cycling race
Q21714536
SYSTEM
1956 Tour d'Europe
Q21714536
(c(Q15091377),P1427,Q1435)
action filter_type
action find_reverse
entity Q1435
relation P1427
type Q15091377
[ANSWER] originates at that administrative country subdivision
[{'concept': 'Q15091377'}, 'P1427', 'Q1435']
SELECT DISTINCT ?j WHERE { ?j property:P1427 resource:Q1435 . ?j rdf:type ontology:Q15091377 }
1956 Tour d'Europe
1956 Tour d'Europe originates at that administrative country subdivision
1956 Tour d'Europe
action filter_type
action find_reverse
entity Zagreb
relation start point
type cycling race
[{'concept': 'cycling race'}, 'start point', 'Zagreb']
SELECT DISTINCT ?j WHERE { ?j property:start_point resource:Zagreb . ?j rdf:type ontology:cycling_race }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q770
P138
Q271669 Q56061 Q15617994
USER
Which administrative territories have greater number of landforms and administrative territories as their namesake than Friesland ?
(c(Q15617994),P138,c(Q271669)|c(Q56061))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q271669
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q770
relation P138
type Q271669
type Q56061
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) ?k WHERE { VALUES ( ?u ) { ( ontology:Q271669 ) ( ontology:Q56061 ) } . ?g rdf:type ?u } GROUP BY ?k } . FILTER ( ?h > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:Q271669 ) ( ontology:Q56061 ) } } . resource:Q770 property:P138 ?m } } }
Friesland
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Friesland
relation named after
type landform
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) ?k WHERE { VALUES ( ?u ) { ( ontology:landform ) ( ontology:administrative_territorial_entity ) } . ?g rdf:type ?u } GROUP BY ?k } . FILTER ( ?h > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:landform ) ( ontology:administrative_territorial_entity ) } } . resource:Friesland property:named_after ?m } } }
[]
landform administrative territorial entity designation for an administrative territorial entity
Q32 Q27 Q786
SYSTEM
Luxembourg, Ireland, Dominican Republic
Q1027 Q1098820 Q1979 Q1028 Q691890 Q1232680 Q1508919 Q3259 Q786 Q5015782 Q32 Q2304605 Q1029 Q3120 Q754 Q752 Q2136219 Q977 Q1019 Q775 Q776 Q27 Q3105 Q1558632 Q13401101
(c(Q15617994),P138,c(Q271669)|c(Q56061))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q271669
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q770
relation P138
type Q271669
type Q56061
[ANSWERS] have greater number of landforms and administrative territories as their namesake than Friesland
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) ?k WHERE { VALUES ( ?u ) { ( ontology:Q271669 ) ( ontology:Q56061 ) } . ?g rdf:type ?u } GROUP BY ?k } . FILTER ( ?h > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:Q271669 ) ( ontology:Q56061 ) } } . resource:Q770 property:P138 ?m } } }
Mauritius Gênes Prince Edward Island Morocco Corcyre Ithaque Marengo Cantal Dominican Republic Cabot Public Schools Luxembourg Spitsbergen Mozambique Jura Trinidad and Tobago Groningen Amsterdam, Saskatchewan Djibouti Madagascar Gelderland Utrecht Ireland Vosges Rome Brandon Valley School District
Luxembourg, Ireland and Dominican Republic have greater number of landforms and administrative territories as their namesake than Friesland
Luxembourg Ireland Dominican Republic
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Friesland
relation named after
type landform
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) ?k WHERE { VALUES ( ?u ) { ( ontology:landform ) ( ontology:administrative_territorial_entity ) } . ?g rdf:type ?u } GROUP BY ?k } . FILTER ( ?h > ?w ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { ?m rdf:type ?z . VALUES ( ?z ) { ( ontology:landform ) ( ontology:administrative_territorial_entity ) } } . resource:Friesland property:named_after ?m } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q12526
P138
Q271669 Q56061 Q15617994
USER
And what about Gironde?
(c(Q15617994),P138,c(Q271669)|c(Q56061))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q271669
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q12526
relation P138
type Q271669
type Q56061
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?g ) WHERE { { ?n property:P138 ?r . ?r rdf:type ontology:Q271669 . ?n rdf:type ontology:Q15617994 } UNION { ?n property:P138 ?r . ?n rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q56061 } } GROUP BY ?n } . FILTER ( ?g > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q12526 property:P138 ?m . { { ?m rdf:type ontology:Q271669 } UNION { ?m rdf:type ontology:Q56061 } } } } }
Gironde
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Gironde
relation named after
type landform
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?g ) WHERE { { ?n property:named_after ?r . ?r rdf:type ontology:landform . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?n property:named_after ?r . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } } GROUP BY ?n } . FILTER ( ?g > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Gironde property:named_after ?m . { { ?m rdf:type ontology:landform } UNION { ?m rdf:type ontology:administrative_territorial_entity } } } } }
[]
landform administrative territorial entity designation for an administrative territorial entity
Q32 Q27 Q786
SYSTEM
Luxembourg, Ireland, Dominican Republic
Q1027 Q1098820 Q1979 Q1028 Q691890 Q1232680 Q1508919 Q3259 Q786 Q5015782 Q32 Q2304605 Q1029 Q3120 Q754 Q752 Q2136219 Q977 Q1019 Q775 Q776 Q27 Q3105 Q1558632 Q13401101
(c(Q15617994),P138,c(Q271669)|c(Q56061))
action greater
action union
action find_tuple_counts
relation P138
type Q15617994
type Q271669
action find_tuple_counts
relation P138
type Q15617994
type Q56061
action count
action filter_multi_types
action find
entity Q12526
relation P138
type Q271669
type Q56061
[ANSWERS]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?g ) WHERE { { ?n property:P138 ?r . ?r rdf:type ontology:Q271669 . ?n rdf:type ontology:Q15617994 } UNION { ?n property:P138 ?r . ?n rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q56061 } } GROUP BY ?n } . FILTER ( ?g > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q12526 property:P138 ?m . { { ?m rdf:type ontology:Q271669 } UNION { ?m rdf:type ontology:Q56061 } } } } }
Mauritius Gênes Prince Edward Island Morocco Corcyre Ithaque Marengo Cantal Dominican Republic Cabot Public Schools Luxembourg Spitsbergen Mozambique Jura Trinidad and Tobago Groningen Amsterdam, Saskatchewan Djibouti Madagascar Gelderland Utrecht Ireland Vosges Rome Brandon Valley School District
Luxembourg Ireland Dominican Republic
action greater
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type landform
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Gironde
relation named after
type landform
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?g ) WHERE { { ?n property:named_after ?r . ?r rdf:type ontology:landform . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?n property:named_after ?r . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } } GROUP BY ?n } . FILTER ( ?g > ?a ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Gironde property:named_after ?m . { { ?m rdf:type ontology:landform } UNION { ?m rdf:type ontology:administrative_territorial_entity } } } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P276
Q180684 Q82794
USER
How many conflicts or geographic regions are located at that administrative territory ?
(c(Q180684),P276,Q27) (c(Q82794),P276,Q27) (c(Q180684),P276,Q32) (c(Q82794),P276,Q32) (c(Q180684),P276,Q27) (c(Q82794),P276,Q27) (c(Q180684),P276,Q786) (c(Q82794),P276,Q786)
[{'concept': 'Q180684'}, 'P276', 'Q27'] [{'concept': 'Q82794'}, 'P276', 'Q27'] [{'concept': 'Q180684'}, 'P276', 'Q32'] [{'concept': 'Q82794'}, 'P276', 'Q32'] [{'concept': 'Q180684'}, 'P276', 'Q27'] [{'concept': 'Q82794'}, 'P276', 'Q27'] [{'concept': 'Q180684'}, 'P276', 'Q786'] [{'concept': 'Q82794'}, 'P276', 'Q786']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q17334923 resource:Q14688494 } UNION { ?y property:Q17334923 resource:Q14688494 } UNION { ?z property:Q17334923 resource:Q21050750 } UNION { ?y property:Q17334923 resource:Q21050750 } UNION { ?z property:Q17334923 resource:Q14688494 } UNION { ?y property:Q17334923 resource:Q14688494 } UNION { ?z property:Q17334923 resource:Q786 } UNION { ?y property:Q17334923 resource:Q786 } } . ?z rdf:type ontology:Q4231815 . ?y rdf:type ontology:Q82794 }
[{'concept': 'conflict'}, 'location', 'Ireland'] [{'concept': 'geographic region'}, 'location', 'Ireland'] [{'concept': 'conflict'}, 'location', 'Luxembourg'] [{'concept': 'geographic region'}, 'location', 'Luxembourg'] [{'concept': 'conflict'}, 'location', 'Ireland'] [{'concept': 'geographic region'}, 'location', 'Ireland'] [{'concept': 'conflict'}, 'location', 'Dominican Republic'] [{'concept': 'geographic region'}, 'location', 'Dominican Republic']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:location resource:Ireland } UNION { ?y property:location resource:Ireland } UNION { ?z property:location resource:Luxembourg } UNION { ?y property:location resource:Luxembourg } UNION { ?z property:location resource:Ireland } UNION { ?y property:location resource:Ireland } UNION { ?z property:location resource:Dominican_Republic } UNION { ?y property:location resource:Dominican_Republic } } . ?z rdf:type ontology:conflict . ?y rdf:type ontology:geographic_region }
[]
conflict geographic region
Quantitative|Count|Mult. entity type|Clarification
Q786
SYSTEM
Did you mean Dominican Republic ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q17334923 resource:Q14688494 } UNION { ?y property:Q17334923 resource:Q14688494 } UNION { ?z property:Q17334923 resource:Q21050750 } UNION { ?y property:Q17334923 resource:Q21050750 } UNION { ?z property:Q17334923 resource:Q14688494 } UNION { ?y property:Q17334923 resource:Q14688494 } UNION { ?z property:Q17334923 resource:Q786 } UNION { ?y property:Q17334923 resource:Q786 } } . ?z rdf:type ontology:Q4231815 . ?y rdf:type ontology:Q82794 }
Did you mean Dominican Republic ?
Dominican Republic
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:location resource:Ireland } UNION { ?y property:location resource:Ireland } UNION { ?z property:location resource:Luxembourg } UNION { ?y property:location resource:Luxembourg } UNION { ?z property:location resource:Ireland } UNION { ?y property:location resource:Ireland } UNION { ?z property:location resource:Dominican_Republic } UNION { ?y property:location resource:Dominican_Republic } } . ?z rdf:type ontology:conflict . ?y rdf:type ontology:geographic_region }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Ireland. Could you tell me the answer for that?
(c(Q180684),P276,Q27) (c(Q82794),P276,Q27) (c(Q180684),P276,Q32) (c(Q82794),P276,Q32) (c(Q180684),P276,Q27) (c(Q82794),P276,Q27) (c(Q180684),P276,Q786) (c(Q82794),P276,Q786)
Q27
[{'concept': 'Q180684'}, 'P276', 'Q27'] [{'concept': 'Q82794'}, 'P276', 'Q27'] [{'concept': 'Q180684'}, 'P276', 'Q32'] [{'concept': 'Q82794'}, 'P276', 'Q32'] [{'concept': 'Q180684'}, 'P276', 'Q27'] [{'concept': 'Q82794'}, 'P276', 'Q27'] [{'concept': 'Q180684'}, 'P276', 'Q786'] [{'concept': 'Q82794'}, 'P276', 'Q786']
[{'concept': 'conflict'}, 'location', 'Ireland'] [{'concept': 'geographic region'}, 'location', 'Ireland'] [{'concept': 'conflict'}, 'location', 'Luxembourg'] [{'concept': 'geographic region'}, 'location', 'Luxembourg'] [{'concept': 'conflict'}, 'location', 'Ireland'] [{'concept': 'geographic region'}, 'location', 'Ireland'] [{'concept': 'conflict'}, 'location', 'Dominican Republic'] [{'concept': 'geographic region'}, 'location', 'Dominican Republic']
[]
SYSTEM
2
Q24553416 Q944941
(c(Q180684),P276,Q27) (c(Q82794),P276,Q27) (c(Q180684),P276,Q32) (c(Q82794),P276,Q32) (c(Q180684),P276,Q27) (c(Q82794),P276,Q27) (c(Q180684),P276,Q786) (c(Q82794),P276,Q786)
[ANSWER]
[{'concept': 'Q180684'}, 'P276', 'Q27'] [{'concept': 'Q82794'}, 'P276', 'Q27'] [{'concept': 'Q180684'}, 'P276', 'Q32'] [{'concept': 'Q82794'}, 'P276', 'Q32'] [{'concept': 'Q180684'}, 'P276', 'Q27'] [{'concept': 'Q82794'}, 'P276', 'Q27'] [{'concept': 'Q180684'}, 'P276', 'Q786'] [{'concept': 'Q82794'}, 'P276', 'Q786']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q17334923 resource:Q14688494 } UNION { ?y property:Q17334923 resource:Q14688494 } UNION { ?z property:Q17334923 resource:Q21050750 } UNION { ?y property:Q17334923 resource:Q21050750 } UNION { ?z property:Q17334923 resource:Q14688494 } UNION { ?y property:Q17334923 resource:Q14688494 } UNION { ?z property:Q17334923 resource:Q786 } UNION { ?y property:Q17334923 resource:Q786 } } . ?z rdf:type ontology:Q4231815 . ?y rdf:type ontology:Q82794 }
Viking Age Ireland Irish Rebellion of 1798
2
[{'concept': 'conflict'}, 'location', 'Ireland'] [{'concept': 'geographic region'}, 'location', 'Ireland'] [{'concept': 'conflict'}, 'location', 'Luxembourg'] [{'concept': 'geographic region'}, 'location', 'Luxembourg'] [{'concept': 'conflict'}, 'location', 'Ireland'] [{'concept': 'geographic region'}, 'location', 'Ireland'] [{'concept': 'conflict'}, 'location', 'Dominican Republic'] [{'concept': 'geographic region'}, 'location', 'Dominican Republic']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:location resource:Ireland } UNION { ?y property:location resource:Ireland } UNION { ?z property:location resource:Luxembourg } UNION { ?y property:location resource:Luxembourg } UNION { ?z property:location resource:Ireland } UNION { ?y property:location resource:Ireland } UNION { ?z property:location resource:Dominican_Republic } UNION { ?y property:location resource:Dominican_Republic } } . ?z rdf:type ontology:conflict . ?y rdf:type ontology:geographic_region }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q32 Q42976
P138
Q55488
USER
How many railway stations are the eponym of Luxembourg or October Revolution ?
(c(Q55488),P138,Q32) (c(Q55488),P138,Q42976)
action count
action union
action filter_type
action find_reverse
entity Q32
relation P138
type Q55488
action filter_type
action find_reverse
entity Q42976
relation P138
type Q55488
[{'concept': 'Q55488'}, 'P138', 'Q32'] [{'concept': 'Q55488'}, 'P138', 'Q42976']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { ?i property:P138 resource:Q32 . ?i rdf:type ontology:Q55488 } UNION { ?i property:P138 resource:Q42976 . ?i rdf:type ontology:Q55488 } }
Luxembourg October Revolution
action count
action union
action filter_type
action find_reverse
entity Luxembourg
relation named after
type railway station
action filter_type
action find_reverse
entity October Revolution
relation named after
type railway station
[{'concept': 'railway station'}, 'named after', 'Luxembourg'] [{'concept': 'railway station'}, 'named after', 'October Revolution']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { ?i property:named_after resource:Luxembourg . ?i rdf:type ontology:railway_station } UNION { ?i property:named_after resource:October_Revolution . ?i rdf:type ontology:railway_station } }
[]
railway station
SYSTEM
2
Q2625749 Q1864476
(c(Q55488),P138,Q32) (c(Q55488),P138,Q42976)
action count
action union
action filter_type
action find_reverse
entity Q32
relation P138
type Q55488
action filter_type
action find_reverse
entity Q42976
relation P138
type Q55488
[ANSWER]
[{'concept': 'Q55488'}, 'P138', 'Q32'] [{'concept': 'Q55488'}, 'P138', 'Q42976']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { ?i property:P138 resource:Q32 . ?i rdf:type ontology:Q55488 } UNION { ?i property:P138 resource:Q42976 . ?i rdf:type ontology:Q55488 } }
Oktyabrskaya Maidan Nezalezhnosti (metrostation)
2
action count
action union
action filter_type
action find_reverse
entity Luxembourg
relation named after
type railway station
action filter_type
action find_reverse
entity October Revolution
relation named after
type railway station
[{'concept': 'railway station'}, 'named after', 'Luxembourg'] [{'concept': 'railway station'}, 'named after', 'October Revolution']
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { ?i property:named_after resource:Luxembourg . ?i rdf:type ontology:railway_station } UNION { ?i property:named_after resource:October_Revolution . ?i rdf:type ontology:railway_station } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q32
P1376
Q56061
USER
Which administrative territory is the county seat of that administrative territory ?
action filter_type
action find_reverse
entity Q32
relation P1376
type Q56061
SELECT DISTINCT ?q WHERE { ?q property:P1376 resource:Q32 . ?q rdf:type ontology:Q56061 }
Luxembourg
action filter_type
action find_reverse
entity Luxembourg
relation capital of
type administrative territorial entity
SELECT DISTINCT ?q WHERE { ?q property:capital_of resource:Luxembourg . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1842
SYSTEM
Luxembourg
Q1842
action filter_type
action find_reverse
entity Q32
relation P1376
type Q56061
[ANSWER] is the county seat of that administrative territory
SELECT DISTINCT ?q WHERE { ?q property:P1376 resource:Q32 . ?q rdf:type ontology:Q56061 }
Luxembourg
Luxembourg is the county seat of that administrative territory
Luxembourg
action filter_type
action find_reverse
entity Luxembourg
relation capital of
type administrative territorial entity
SELECT DISTINCT ?q WHERE { ?q property:capital_of resource:Luxembourg . ?q rdf:type ontology:administrative_territorial_entity }
[]