Simple Question (Direct)
Simple Question
Q1657056
P19
Q56061
USER
Which administrative territory was Aleksandr Dovbnya born at ?
(Q1657056,P19,c(Q56061))
action filter_type
action find
entity Q1657056
relation P19
type Q56061
['Q1657056', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q1657056 property:P19 ?w }
Aleksandr Dovbnya
action filter_type
action find
entity Aleksandr Dovbnya
relation place of birth
type administrative territorial entity
['Aleksandr Dovbnya', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Aleksandr_Dovbnya property:place_of_birth ?w }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q1657056,P19,c(Q56061))
action filter_type
action find
entity Q1657056
relation P19
type Q56061
Aleksandr Dovbnya was born in [ANSWER]
['Q1657056', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q1657056 property:P19 ?w }
Moscow
Aleksandr Dovbnya was born in Moscow
Moscow
action filter_type
action find
entity Aleksandr Dovbnya
relation place of birth
type administrative territorial entity
['Aleksandr Dovbnya', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Aleksandr_Dovbnya property:place_of_birth ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q649
P276
Q18142
USER
Which tower block has its location as that administrative territory ?
(c(Q18142),P276,Q649)
action filter_type
action find_reverse
entity Q649
relation P276
type Q18142
[{'concept': 'Q18142'}, 'P276', 'Q649']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q649 . ?x rdf:type ontology:Q18142 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation location
type tower block
[{'concept': 'tower block'}, 'location', 'Moscow']
SELECT DISTINCT ?x WHERE { ?x property:location resource:Moscow . ?x rdf:type ontology:tower_block }
[]
tower block
Q4057816
SYSTEM
Eighth Sister
Q4057816
(c(Q18142),P276,Q649)
action filter_type
action find_reverse
entity Q649
relation P276
type Q18142
[ANSWER] has its location as that administrative territory
[{'concept': 'Q18142'}, 'P276', 'Q649']
SELECT DISTINCT ?x WHERE { ?x property:P276 resource:Q649 . ?x rdf:type ontology:Q18142 }
Eighth Sister
Eighth Sister has its location as that administrative territory
Eighth Sister
action filter_type
action find_reverse
entity Moscow
relation location
type tower block
[{'concept': 'tower block'}, 'location', 'Moscow']
SELECT DISTINCT ?x WHERE { ?x property:location resource:Moscow . ?x rdf:type ontology:tower_block }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4057816
P17
Q15617994
USER
Which administrative territory is that tower block a part of ?
(Q4057816,P17,c(Q15617994))
action filter_type
action find
entity Q4057816
relation P17
type Q15617994
['Q4057816', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q4057816 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Eighth Sister
action filter_type
action find
entity Eighth Sister
relation country
type designation for an administrative territorial entity
['Eighth Sister', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Eighth_Sister property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q4057816,P17,c(Q15617994))
action filter_type
action find
entity Q4057816
relation P17
type Q15617994
The [ANSWER] is that tower block a part of
['Q4057816', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q4057816 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Russia
The Russia is that tower block a part of
Russia
action filter_type
action find
entity Eighth Sister
relation country
type designation for an administrative territorial entity
['Eighth Sister', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Eighth_Sister property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q159 Q148 Q34517
P530
Q15617994
USER
Does Russia have ambassadorial relations with People's Republic of China and Bosaro ?
(Q159,P530,Q148) (Q159,P530,Q34517)
action is_in
entity Q159
action intersection
action find_reverse
entity Q148
relation P530
action find_reverse
entity Q34517
relation P530
['Q159', 'P530', 'Q148'] ['Q159', 'P530', 'Q34517']
ASK WHERE { resource:Q159 property:P530 resource:Q148 . resource:Q159 property:P530 resource:Q34517 }
Russia People's Republic of China Bosaro
action is_in
entity Russia
action intersection
action find_reverse
entity People's Republic of China
relation diplomatic relation
action find_reverse
entity Bosaro
relation diplomatic relation
['Russia', 'diplomatic relation', "People's Republic of China"] ['Russia', 'diplomatic relation', 'Bosaro']
ASK WHERE { resource:Russia property:diplomatic_relation resource:People's_Republic_of_China . resource:Russia property:diplomatic_relation resource:Bosaro }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q159,P530,Q148) (Q159,P530,Q34517)
action is_in
entity Q159
action intersection
action find_reverse
entity Q148
relation P530
action find_reverse
entity Q34517
relation P530
[ANSWER]
['Q159', 'P530', 'Q148'] ['Q159', 'P530', 'Q34517']
ASK WHERE { resource:Q159 property:P530 resource:Q148 . resource:Q159 property:P530 resource:Q34517 }
YES and NO respectively
action is_in
entity Russia
action intersection
action find_reverse
entity People's Republic of China
relation diplomatic relation
action find_reverse
entity Bosaro
relation diplomatic relation
['Russia', 'diplomatic relation', "People's Republic of China"] ['Russia', 'diplomatic relation', 'Bosaro']
ASK WHERE { resource:Russia property:diplomatic_relation resource:People's_Republic_of_China . resource:Russia property:diplomatic_relation resource:Bosaro }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q41
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with more number of administrative territories than Greece ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q41
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:Q15617994 . ?n property:P530 resource:Q41 } } . FILTER ( ?o > ?y ) . { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?o ) WHERE { ?m property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } }
Greece
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_reverse
entity Greece
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 ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation resource:Greece } } . FILTER ( ?o > ?y ) . { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?o ) WHERE { ?m property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q403 Q159 Q43 Q155 Q796 Q794 Q30 Q38 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q41
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with more number of administrative territories than Greece
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:Q15617994 . ?n property:P530 resource:Q41 } } . FILTER ( ?o > ?y ) . { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?o ) WHERE { ?m property:P530 ?f . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?m } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Serbia Russia Turkey Brazil Iraq Iran United States of America Italy Liechtenstein Japan Egypt Libya Cape Verde Zambia
Italy, Brazil and United States of America have diplomatic relationships with more number of administrative territories than Greece
Italy Brazil United States of America
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_reverse
entity Greece
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 ?m WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation resource:Greece } } . FILTER ( ?o > ?y ) . { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?o ) WHERE { ?m property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q29
P530
Q15617994 Q15617994
USER
And how about Spain?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q29
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?o ) WHERE { ?h property:P530 ?p . ?h rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q29 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?n ) }
Spain
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 Spain
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 ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?o ) WHERE { ?h property:diplomatic_relation ?p . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Spain property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?n ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q34 Q38 Q423 Q27 Q843 Q227 Q222 Q347 Q17 Q1033 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q29
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?o ) WHERE { ?h property:P530 ?p . ?h rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q29 property:P530 ?j . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?n ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Sweden Italy North Korea Ireland Pakistan Azerbaijan Albania Liechtenstein Japan Nigeria Czech Republic Angola Egypt Libya Cape Verde Zambia
Italy Brazil United States of America
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 Spain
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 ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?o ) WHERE { ?h property:diplomatic_relation ?p . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Spain property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?n ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q2088357
USER
Which administrative territories are the origin of more number of television programs or musical ensembles than that administrative territory ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?d ) { ( ?z ) ( ?x ) } . ?d property:P495 ?y } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?d ) { ( ?z ) ( ?x ) } . ?d property:country_of_origin ?y } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
designation for an administrative territorial entity television program musical ensemble
Comparative|More/Less|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?d ) { ( ?z ) ( ?x ) } . ?d property:P495 ?y } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Did you mean Brazil ?
Brazil
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?d ) { ( ?z ) ( ?x ) } . ?d property:country_of_origin ?y } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q30 Q55
SYSTEM
Italy, United States of America, Netherlands
Q668 Q142 Q55 Q145 Q884 Q30 Q928 Q38 Q96 Q17
(c(Q15416)|c(Q2088357),P495,c(Q15617994))
[ANSWERS] are the origin of more number of television programs or musical ensembles than that administrative territory
[[{'concept': 'Q15416'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
India France Netherlands United Kingdom South Korea United States of America Philippines Italy Mexico Japan
Italy, United States of America and Netherlands are the origin of more number of television programs or musical ensembles than that administrative territory
Italy United States of America Netherlands
[[{'concept': 'television program'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1648466
P530
Q1048835
USER
Do Cárcar have tactful political relations with those administrative territories ?
(Q1648466,P530,Q38) (Q1648466,P530,Q30) (Q1648466,P530,Q55)
action is_in
entity prev_answer
action find
entity Q1648466
relation P530
['Q1648466', 'P530', 'Q38'] ['Q1648466', 'P530', 'Q30'] ['Q1648466', 'P530', 'Q55']
ASK WHERE { resource:Q1648466 property:P530 ?p . VALUES ( ?p ) { ( resource:Q668 ) ( resource:Q142 ) ( resource:Q55 ) } }
Cárcar
action is_in
entity prev_answer
action find
entity Cárcar
relation diplomatic relation
['Cárcar', 'diplomatic relation', 'Italy'] ['Cárcar', 'diplomatic relation', 'United States of America'] ['Cárcar', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Cárcar property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:India ) ( resource:France ) ( resource:Netherlands ) } }
[]
political territorial entity
SYSTEM
NO
(Q1648466,P530,Q38) (Q1648466,P530,Q30) (Q1648466,P530,Q55)
action is_in
entity prev_answer
action find
entity Q1648466
relation P530
[ANSWER]
['Q1648466', 'P530', 'Q38'] ['Q1648466', 'P530', 'Q30'] ['Q1648466', 'P530', 'Q55']
ASK WHERE { resource:Q1648466 property:P530 ?p . VALUES ( ?p ) { ( resource:Q668 ) ( resource:Q142 ) ( resource:Q55 ) } }
No
action is_in
entity prev_answer
action find
entity Cárcar
relation diplomatic relation
['Cárcar', 'diplomatic relation', 'Italy'] ['Cárcar', 'diplomatic relation', 'United States of America'] ['Cárcar', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Cárcar property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:India ) ( resource:France ) ( resource:Netherlands ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q676555 Q229190
P417
Q502895
USER
Does Italy have adopted Francis of Assisi and Catherine of Siena as patron saint ?
(Q38,P417,Q676555) (Q38,P417,Q229190)
action is_in
entity Q38
action intersection
action find_reverse
entity Q676555
relation P417
action find_reverse
entity Q229190
relation P417
['Q38', 'P417', 'Q676555'] ['Q38', 'P417', 'Q229190']
ASK WHERE { resource:Q38 property:P417 resource:Q676555 . resource:Q38 property:P417 resource:Q229190 }
Italy Francis of Assisi Catherine of Siena
action is_in
entity Italy
action intersection
action find_reverse
entity Francis of Assisi
relation patron saint
action find_reverse
entity Catherine of Siena
relation patron saint
['Italy', 'patron saint', 'Francis of Assisi'] ['Italy', 'patron saint', 'Catherine of Siena']
ASK WHERE { resource:Italy property:patron_saint resource:Francis_of_Assisi . resource:Italy property:patron_saint resource:Catherine_of_Siena }
[]
common name
SYSTEM
YES
(Q38,P417,Q676555) (Q38,P417,Q229190)
action is_in
entity Q38
action intersection
action find_reverse
entity Q676555
relation P417
action find_reverse
entity Q229190
relation P417
[ANSWER]
['Q38', 'P417', 'Q676555'] ['Q38', 'P417', 'Q229190']
ASK WHERE { resource:Q38 property:P417 resource:Q676555 . resource:Q38 property:P417 resource:Q229190 }
Yes
action is_in
entity Italy
action intersection
action find_reverse
entity Francis of Assisi
relation patron saint
action find_reverse
entity Catherine of Siena
relation patron saint
['Italy', 'patron saint', 'Francis of Assisi'] ['Italy', 'patron saint', 'Catherine of Siena']
ASK WHERE { resource:Italy property:patron_saint resource:Francis_of_Assisi . resource:Italy property:patron_saint resource:Catherine_of_Siena }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q601730 Q35498
P6
Q502895
USER
Does United States of America have a government lead by Murad Aghakishiyev and Chester A. Arthur ?
(Q30,P6,Q601730) (Q30,P6,Q35498)
action is_in
entity Q30
action intersection
action find_reverse
entity Q601730
relation P6
action find_reverse
entity Q35498
relation P6
['Q30', 'P6', 'Q601730'] ['Q30', 'P6', 'Q35498']
ASK WHERE { resource:Q30 property:P6 resource:Q601730 . resource:Q30 property:P6 resource:Q35498 }
United States of America Murad Aghakishiyev Chester A. Arthur
action is_in
entity United States of America
action intersection
action find_reverse
entity Murad Aghakishiyev
relation head of government
action find_reverse
entity Chester A. Arthur
relation head of government
['United States of America', 'head of government', 'Murad Aghakishiyev'] ['United States of America', 'head of government', 'Chester A. Arthur']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Murad_Aghakishiyev . resource:United_States_of_America property:head_of_government resource:Chester_A._Arthur }
[]
common name
SYSTEM
NO and YES respectively
(Q30,P6,Q601730) (Q30,P6,Q35498)
action is_in
entity Q30
action intersection
action find_reverse
entity Q601730
relation P6
action find_reverse
entity Q35498
relation P6
[ANSWER]
['Q30', 'P6', 'Q601730'] ['Q30', 'P6', 'Q35498']
ASK WHERE { resource:Q30 property:P6 resource:Q601730 . resource:Q30 property:P6 resource:Q35498 }
NO and YES respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Murad Aghakishiyev
relation head of government
action find_reverse
entity Chester A. Arthur
relation head of government
['United States of America', 'head of government', 'Murad Aghakishiyev'] ['United States of America', 'head of government', 'Chester A. Arthur']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Murad_Aghakishiyev . resource:United_States_of_America property:head_of_government resource:Chester_A._Arthur }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q337567 Q56061
USER
How many administrative territories are situated in the neighbourhood of atleast 12 watercourses and still waterss ?
(c(Q56061),P206,c(Q355304)|c(Q337567))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q337567
value 12
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { FILTER ( ?v >= 12 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?s WHERE { { ?s property:P206 ?p . ?p rdf:type ontology:Q355304 . ?s rdf:type ontology:Q56061 } UNION { ?s property:P206 ?p . ?s rdf:type ontology:Q56061 . ?p rdf:type ontology:Q337567 } } GROUP BY ?s } }
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
value 12
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { FILTER ( ?v >= 12 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?s WHERE { { ?s property:located_next_to_body_of_water ?p . ?p rdf:type ontology:watercourse . ?s rdf:type ontology:administrative_territorial_entity } UNION { ?s property:located_next_to_body_of_water ?p . ?s rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:still_waters } } GROUP BY ?s } }
[]
watercourse still waters administrative territorial entity
SYSTEM
1
Q1709
(c(Q56061),P206,c(Q355304)|c(Q337567))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q56061
type Q355304
action find_tuple_counts
relation P206
type Q56061
type Q337567
value 12
[ANSWER]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { FILTER ( ?v >= 12 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?s WHERE { { ?s property:P206 ?p . ?p rdf:type ontology:Q355304 . ?s rdf:type ontology:Q56061 } UNION { ?s property:P206 ?p . ?s rdf:type ontology:Q56061 . ?p rdf:type ontology:Q337567 } } GROUP BY ?s } }
Schwerin
1
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
value 12
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { FILTER ( ?v >= 12 ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?v ) ?s WHERE { { ?s property:located_next_to_body_of_water ?p . ?p rdf:type ontology:watercourse . ?s rdf:type ontology:administrative_territorial_entity } UNION { ?s property:located_next_to_body_of_water ?p . ?s rdf:type ontology:administrative_territorial_entity . ?p rdf:type ontology:still_waters } } GROUP BY ?s } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q21886212 Q155
P530 P17
Q1048835
USER
Which political territories have diplomatic relationships with Brazil and are Mendip Hill located in ?
AND((Q155,P530,c(Q1048835)), (Q21886212,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q21886212
relation P17
type Q1048835
{'AND': [['Q155', 'P530', {'concept': 'Q1048835'}], ['Q21886212', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { resource:Q21886212 property:P17 ?b . resource:Q155 property:P530 ?b . ?b rdf:type ontology:Q1048835 }
Mendip Hill Brazil
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Mendip Hill
relation country
type political territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Mendip Hill', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Mendip_Hill property:country ?b . resource:Brazil property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
AND((Q155,P530,c(Q1048835)), (Q21886212,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q21886212
relation P17
type Q1048835
[ANSWER] have diplomatic relationships with Brazil and are Mendip Hill located in
{'AND': [['Q155', 'P530', {'concept': 'Q1048835'}], ['Q21886212', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { resource:Q21886212 property:P17 ?b . resource:Q155 property:P530 ?b . ?b rdf:type ontology:Q1048835 }
Australia
Australia have diplomatic relationships with Brazil and are Mendip Hill located in
Australia
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Mendip Hill
relation country
type political territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Mendip Hill', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { resource:Mendip_Hill property:country ?b . resource:Brazil property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have tactful political relations with atmost 3 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?f ) WHERE { ?o rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 . ?o property:P530 ?y } GROUP BY ?o } . FILTER ( ?f <= 3 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?f ) WHERE { ?o rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?o property:diplomatic_relation ?y } GROUP BY ?o } . FILTER ( ?f <= 3 ) }
[]
political territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 3
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?f ) WHERE { ?o rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 . ?o property:P530 ?y } GROUP BY ?o } . FILTER ( ?f <= 3 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?y ) AS ?f ) WHERE { ?o rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?o property:diplomatic_relation ?y } GROUP BY ?o } . FILTER ( ?f <= 3 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P1071
Q386724 Q478798
USER
How many works and images have United States of America as their final assembly location ?
(c(Q386724),P1071,Q30) (c(Q478798),P1071,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P1071
type Q386724
action filter_type
action find_reverse
entity Q30
relation P1071
type Q478798
[{'concept': 'Q386724'}, 'P1071', 'Q30'] [{'concept': 'Q478798'}, 'P1071', 'Q30']
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?a ) { ( ontology:Q478798 ) ( ontology:Q386724 ) } . ?n rdf:type ?a }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type work
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type image
[{'concept': 'work'}, 'location of final assembly', 'United States of America'] [{'concept': 'image'}, 'location of final assembly', 'United States of America']
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?a ) { ( ontology:image ) ( ontology:work ) } . ?n rdf:type ?a }
[]
work image
SYSTEM
1 works and 1 images
Q18669758 Q18579026
(c(Q386724),P1071,Q30) (c(Q478798),P1071,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P1071
type Q386724
action filter_type
action find_reverse
entity Q30
relation P1071
type Q478798
[ANSWER]
[{'concept': 'Q386724'}, 'P1071', 'Q30'] [{'concept': 'Q478798'}, 'P1071', 'Q30']
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?a ) { ( ontology:Q478798 ) ( ontology:Q386724 ) } . ?n rdf:type ?a }
Red and Yellow, Black and White The Gardener
1 works and 1 images
action count
action union
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type work
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type image
[{'concept': 'work'}, 'location of final assembly', 'United States of America'] [{'concept': 'image'}, 'location of final assembly', 'United States of America']
SELECT DISTINCT ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?a ) { ( ontology:image ) ( ontology:work ) } . ?n rdf:type ?a }
[]