Simple Question (Direct)
Simple Question
Q46860
P47
Q15617994
USER
Which administrative territories are bordered by Posina ?
(Q46860,P47,c(Q15617994))
action filter_type
action find
entity Q46860
relation P47
type Q15617994
['Q46860', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q46860 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Posina
action filter_type
action find
entity Posina
relation shares border with
type designation for an administrative territorial entity
['Posina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Posina property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q47262 Q327034 Q46936
SYSTEM
Schio, Terragnolo, Arsiero
Q46263 Q327371 Q47262 Q327034 Q46936 Q46364 Q46933
(Q46860,P47,c(Q15617994))
action filter_type
action find
entity Q46860
relation P47
type Q15617994
[ANSWERS] are bordered by Posina
['Q46860', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q46860 property:P47 ?r . ?r rdf:type ontology:Q15617994 }
Valli del Pasubio Trambileno Schio Terragnolo Arsiero Velo d'Astico Laghi
Schio, Terragnolo and Arsiero are bordered by Posina
Schio Terragnolo Arsiero
action filter_type
action find
entity Posina
relation shares border with
type designation for an administrative territorial entity
['Posina', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Posina property:shares_border_with ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q47262
P17
Q15617994
USER
Which administrative territory is that one located in ?
(Q47262,P17,c(Q15617994))
action filter_type
action find
entity Q47262
relation P17
type Q15617994
['Q47262', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q47262 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Schio
action filter_type
action find
entity Schio
relation country
type designation for an administrative territorial entity
['Schio', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Schio property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q47262
SYSTEM
Did you mean Schio ?
Q47262 Q327034 Q46936
(Q47262,P17,c(Q15617994)) (Q327034,P17,c(Q15617994)) (Q46936,P17,c(Q15617994))
[ANSWER]
['Q47262', 'P17', {'concept': 'Q15617994'}] ['Q327034', 'P17', {'concept': 'Q15617994'}] ['Q46936', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q47262 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Schio Terragnolo Arsiero
Did you mean Schio ?
Schio
['Schio', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Terragnolo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Arsiero', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Schio property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q47262,P17,c(Q15617994))
['Q47262', 'P17', {'concept': 'Q15617994'}]
['Schio', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q47262,P17,c(Q15617994))
action filter_type
action find
entity Q47262
relation P17
type Q15617994
That one is located in [ANSWER]
['Q47262', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q47262 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Italy
That one is located in Italy
Italy
action filter_type
action find
entity Schio
relation country
type designation for an administrative territorial entity
['Schio', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Schio property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q38 Q183
P530
Q1048835
USER
Does Germany have diplomatic relations with that administrative territory ?
(Q38,P530,Q183)
action is_in
entity Q183
action find
entity Q38
relation P530
['Q38', 'P530', 'Q183']
ASK WHERE { resource:Q38 property:P530 resource:Q183 }
Italy Germany
action is_in
entity Germany
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q38,P530,Q183)
action is_in
entity Q183
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q183']
ASK WHERE { resource:Q38 property:P530 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?t ) WHERE { ?v property:P530 ?j . ?v rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?v } } . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?i ) WHERE { ?f property:P530 ?m . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?i = ?s ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
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 ?f WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?t ) WHERE { ?v property:diplomatic_relation ?j . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?i ) WHERE { ?f property:diplomatic_relation ?m . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?i = ?s ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have tactful political relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?t ) WHERE { ?v property:P530 ?j . ?v rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?v } } . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?i ) WHERE { ?f property:P530 ?m . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?i = ?s ) }
Georgia
Georgia have tactful political relations with max number of administrative territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
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 ?f WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?t ) WHERE { ?v property:diplomatic_relation ?j . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?i ) WHERE { ?f property:diplomatic_relation ?m . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?i = ?s ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q230 Q565308 Q805
P530
Q15617994
USER
Does that administrative territory have tactful political relations with Buhlenberg and Yemen ?
(Q230,P530,Q565308) (Q230,P530,Q805)
action is_in
entity Q230
action intersection
action find_reverse
entity Q565308
relation P530
action find_reverse
entity Q805
relation P530
['Q230', 'P530', 'Q565308'] ['Q230', 'P530', 'Q805']
ASK WHERE { resource:Q230 property:P530 resource:Q805 . resource:Q230 property:P530 resource:Q565308 }
Georgia Buhlenberg Yemen
action is_in
entity Georgia
action intersection
action find_reverse
entity Buhlenberg
relation diplomatic relation
action find_reverse
entity Yemen
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Buhlenberg'] ['Georgia', 'diplomatic relation', 'Yemen']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Yemen . resource:Georgia property:diplomatic_relation resource:Buhlenberg }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q230,P530,Q565308) (Q230,P530,Q805)
action is_in
entity Q230
action intersection
action find_reverse
entity Q565308
relation P530
action find_reverse
entity Q805
relation P530
[ANSWER]
['Q230', 'P530', 'Q565308'] ['Q230', 'P530', 'Q805']
ASK WHERE { resource:Q230 property:P530 resource:Q805 . resource:Q230 property:P530 resource:Q565308 }
NO and YES respectively
action is_in
entity Georgia
action intersection
action find_reverse
entity Buhlenberg
relation diplomatic relation
action find_reverse
entity Yemen
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Buhlenberg'] ['Georgia', 'diplomatic relation', 'Yemen']
ASK WHERE { resource:Georgia property:diplomatic_relation resource:Yemen . resource:Georgia property:diplomatic_relation resource:Buhlenberg }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q781
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with around the same number of administrative territories as Antigua and Barbuda ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?b ) WHERE { ?y property:P530 ?f . ?y rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Q781 property:P530 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?b = ?k ) }
Antigua and Barbuda
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?b ) WHERE { ?y property:diplomatic_relation ?f . ?y rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?b = ?k ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with around the same number of administrative territories as Antigua and Barbuda
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?b ) WHERE { ?y property:P530 ?f . ?y rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Q781 property:P530 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?b = ?k ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relationships with around the same number of administrative territories as Antigua and Barbuda
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?b ) WHERE { ?y property:diplomatic_relation ?f . ?y rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?b = ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q35
P530
Q1048835 Q15617994
USER
And also tell me about Denmark?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?x ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { resource:Q35 property:P530 ?n . ?n rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?b ) }
Denmark
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?x ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { resource:Denmark property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?b ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?x ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { resource:Q35 property:P530 ?n . ?n rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?b ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?x ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { resource:Denmark property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P30
Q2221906
USER
Where is Denmark located ?
(Q35,P30,c(Q2221906))
action filter_type
action find
entity Q35
relation P30
type Q2221906
['Q35', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { resource:Q35 property:P30 ?x . ?x rdf:type ontology:Q2221906 }
Denmark
action filter_type
action find
entity Denmark
relation continent
type geographic location
['Denmark', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { resource:Denmark property:continent ?x . ?x rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q35,P30,c(Q2221906))
action filter_type
action find
entity Q35
relation P30
type Q2221906
Denmark is located in [ANSWER]
['Q35', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { resource:Q35 property:P30 ?x . ?x rdf:type ontology:Q2221906 }
Europe
Denmark is located in Europe
Europe
action filter_type
action find
entity Denmark
relation continent
type geographic location
['Denmark', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { resource:Denmark property:continent ?x . ?x rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q35
P194
Q1752346
USER
Which assembly is the legislative body for that political territory ?
(Q46,P194,c(Q1752346))
action filter_type
action find
entity Q35
relation P194
type Q1752346
['Q46', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1752346 . resource:Q35 property:P194 ?u }
Denmark
action filter_type
action find
entity Denmark
relation legislative body
type assembly
['Europe', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:assembly . resource:Denmark property:legislative_body ?u }
[]
assembly
Q209151
SYSTEM
Folketing
Q209151
(Q46,P194,c(Q1752346))
action filter_type
action find
entity Q35
relation P194
type Q1752346
[ANSWER] is the legislative body for that political territory
['Q46', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1752346 . resource:Q35 property:P194 ?u }
Folketing
Folketing is the legislative body for that political territory
Folketing
action filter_type
action find
entity Denmark
relation legislative body
type assembly
['Europe', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:assembly . resource:Denmark property:legislative_body ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q209151 Q35
P194
Q1048835
USER
Does Denmark have that assembly as its representative body ?
(Q35,P194,Q209151)
action is_in
entity Q209151
action find
entity Q35
relation P194
['Q35', 'P194', 'Q209151']
ASK WHERE { resource:Q35 property:P194 resource:Q209151 }
Folketing Denmark
action is_in
entity Folketing
action find
entity Denmark
relation legislative body
['Denmark', 'legislative body', 'Folketing']
ASK WHERE { resource:Denmark property:legislative_body resource:Folketing }
[]
political territorial entity
SYSTEM
YES
(Q35,P194,Q209151)
action is_in
entity Q209151
action find
entity Q35
relation P194
[ANSWER]
['Q35', 'P194', 'Q209151']
ASK WHERE { resource:Q35 property:P194 resource:Q209151 }
Yes
action is_in
entity Folketing
action find
entity Denmark
relation legislative body
['Denmark', 'legislative body', 'Folketing']
ASK WHERE { resource:Denmark property:legislative_body resource:Folketing }
[]