Simple Question (Direct)
Simple Question
Q3107098
P19
Q56061
USER
Where was Giovanni Becatti born ?
(Q3107098,P19,c(Q56061))
action filter_type
action find
entity Q3107098
relation P19
type Q56061
['Q3107098', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q3107098 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Giovanni Becatti
action filter_type
action find
entity Giovanni Becatti
relation place of birth
type administrative territorial entity
['Giovanni Becatti', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Giovanni_Becatti property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2751
SYSTEM
Siena
Q2751
(Q3107098,P19,c(Q56061))
action filter_type
action find
entity Q3107098
relation P19
type Q56061
Giovanni Becatti was born [ANSWER]
['Q3107098', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q3107098 property:P19 ?f . ?f rdf:type ontology:Q56061 }
Siena
Giovanni Becatti was born Siena
Siena
action filter_type
action find
entity Giovanni Becatti
relation place of birth
type administrative territorial entity
['Giovanni Becatti', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Giovanni_Becatti property:place_of_birth ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2751
P1376
Q15617994
USER
What has that administrative territory as its capital ?
(Q2751,P1376,c(Q15617994))
action filter_type
action find
entity Q2751
relation P1376
type Q15617994
['Q2751', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q2751 property:P1376 ?w }
Siena
action filter_type
action find
entity Siena
relation capital of
type designation for an administrative territorial entity
['Siena', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Siena property:capital_of ?w }
[]
designation for an administrative territorial entity
Q1452650
SYSTEM
Ombrone
Q1452650
(Q2751,P1376,c(Q15617994))
action filter_type
action find
entity Q2751
relation P1376
type Q15617994
[ANSWER] has that administrative territory as its capital
['Q2751', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q2751 property:P1376 ?w }
Ombrone
Ombrone has that administrative territory as its capital
Ombrone
action filter_type
action find
entity Siena
relation capital of
type designation for an administrative territorial entity
['Siena', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Siena property:capital_of ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1452650
P138
Q355304
USER
What is that administrative territory named after ?
(Q1452650,P138,c(Q355304))
action filter_type
action find
entity Q1452650
relation P138
type Q355304
['Q1452650', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { resource:Q1452650 property:P138 ?q . ?q rdf:type ontology:Q355304 }
Ombrone
action filter_type
action find
entity Ombrone
relation named after
type watercourse
['Ombrone', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { resource:Ombrone property:named_after ?q . ?q rdf:type ontology:watercourse }
[]
watercourse
Q736290
SYSTEM
Ombrone
Q736290
(Q1452650,P138,c(Q355304))
action filter_type
action find
entity Q1452650
relation P138
type Q355304
That administrative territory named after is called [ANSWER]
['Q1452650', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?q WHERE { resource:Q1452650 property:P138 ?q . ?q rdf:type ontology:Q355304 }
Ombrone
That administrative territory named after is called Ombrone
Ombrone
action filter_type
action find
entity Ombrone
relation named after
type watercourse
['Ombrone', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?q WHERE { resource:Ombrone property:named_after ?q . ?q rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2751
P190
Q20667921
USER
Which french administrative division is twin city of Siena ?
(c(Q20667921),P190,Q2751)
action filter_type
action find
entity Q2751
relation P190
type Q20667921
[{'concept': 'Q20667921'}, 'P190', 'Q2751']
SELECT DISTINCT ?r WHERE { resource:Q2751 property:P190 ?r . ?r rdf:type ontology:Q20667921 }
Siena
action filter_type
action find
entity Siena
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Siena']
SELECT DISTINCT ?r WHERE { resource:Siena property:sister_city ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q6397
SYSTEM
Avignon
Q6397
(c(Q20667921),P190,Q2751)
action filter_type
action find
entity Q2751
relation P190
type Q20667921
[ANSWER] is twin city of Siena
[{'concept': 'Q20667921'}, 'P190', 'Q2751']
SELECT DISTINCT ?r WHERE { resource:Q2751 property:P190 ?r . ?r rdf:type ontology:Q20667921 }
Avignon
Avignon is twin city of Siena
Avignon
action filter_type
action find
entity Siena
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Siena']
SELECT DISTINCT ?r WHERE { resource:Siena property:sister_city ?r . ?r rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2751
P17
Q15617994
USER
Which administrative territory is Siena situated in ?
(Q2751,P17,c(Q15617994))
action filter_type
action find
entity Q2751
relation P17
type Q15617994
['Q2751', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q2751 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Siena
action filter_type
action find
entity Siena
relation country
type designation for an administrative territorial entity
['Siena', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Siena property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q2751,P17,c(Q15617994))
action filter_type
action find
entity Q2751
relation P17
type Q15617994
Siena is situated in [ANSWER]
['Q2751', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q2751 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Italy
Siena is situated in Italy
Italy
action filter_type
action find
entity Siena
relation country
type designation for an administrative territorial entity
['Siena', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Siena property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P272
Q838948
USER
Which works of art were produced by that administrative territory ?
(c(Q838948),P272,Q38)
action filter_type
action find_reverse
entity Q38
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q38']
SELECT DISTINCT ?o WHERE { ?o property:P272 resource:Q38 . ?o rdf:type ontology:Q838948 }
Italy
action filter_type
action find_reverse
entity Italy
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Italy']
SELECT DISTINCT ?o WHERE { ?o property:production_company resource:Italy . ?o rdf:type ontology:work_of_art }
[]
work of art
Q1407653 Q7774772
SYSTEM
The Naked Maja, The Widow
Q1407653 Q7774772
(c(Q838948),P272,Q38)
action filter_type
action find_reverse
entity Q38
relation P272
type Q838948
[ANSWERS] were produced by that administrative territory
[{'concept': 'Q838948'}, 'P272', 'Q38']
SELECT DISTINCT ?o WHERE { ?o property:P272 resource:Q38 . ?o rdf:type ontology:Q838948 }
The Naked Maja The Widow
The Naked Maja and The Widow were produced by that administrative territory
The Naked Maja The Widow
action filter_type
action find_reverse
entity Italy
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Italy']
SELECT DISTINCT ?o WHERE { ?o property:production_company resource:Italy . ?o rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1407653 Q7774772
P495
Q15617994
USER
Where did those works of art originate ?
(Q1407653,P495,c(Q15617994)) (Q7774772,P495,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P495
type Q15617994
['Q1407653', 'P495', {'concept': 'Q15617994'}] ['Q7774772', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?b property:P495 ?m . ?m rdf:type ontology:Q15617994 . VALUES ( ?b ) { ( resource:Q1407653 ) ( resource:Q7774772 ) } }
The Naked Maja The Widow
action filter_type
action find
entity prev_answer
relation country of origin
type designation for an administrative territorial entity
['The Naked Maja', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Widow', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?b property:country_of_origin ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?b ) { ( resource:The_Naked_Maja ) ( resource:The_Widow ) } }
[]
designation for an administrative territorial entity
Q38 Q38 Q30
SYSTEM
Italy for 1st, 2nd, United States of America for 3rd
Q142 Q30 Q38 Q38
(Q1407653,P495,c(Q15617994)) (Q7774772,P495,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P495
type Q15617994
[ANSWERS]
['Q1407653', 'P495', {'concept': 'Q15617994'}] ['Q7774772', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { ?b property:P495 ?m . ?m rdf:type ontology:Q15617994 . VALUES ( ?b ) { ( resource:Q1407653 ) ( resource:Q7774772 ) } }
France United States of America Italy Italy
Those works of art originated in Italy, Italy and United States of America
Italy Italy United States of America
action filter_type
action find
entity prev_answer
relation country of origin
type designation for an administrative territorial entity
['The Naked Maja', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['The Widow', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?b property:country_of_origin ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?b ) { ( resource:The_Naked_Maja ) ( resource:The_Widow ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30
P85
Q484692
USER
Which hymn is the anthem for that administrative territory ?
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?j WHERE { resource:Q30 property:P85 ?j . ?j rdf:type ontology:Q484692 }
United States of America
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?j WHERE { resource:United_States_of_America property:anthem ?j . ?j rdf:type ontology:hymn }
[]
hymn
Clarification for simple ques.
Q38
SYSTEM
Did you mean Italy ?
Q38 Q38 Q30
(Q38,P85,c(Q484692)) (Q38,P85,c(Q484692)) (Q30,P85,c(Q484692))
[ANSWER]
['Q38', 'P85', {'concept': 'Q484692'}] ['Q38', 'P85', {'concept': 'Q484692'}] ['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?j WHERE { resource:Q30 property:P85 ?j . ?j rdf:type ontology:Q484692 }
Italy Italy United States of America
Did you mean Italy ?
Italy
['Italy', 'anthem', {'concept': 'hymn'}] ['Italy', 'anthem', {'concept': 'hymn'}] ['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?j WHERE { resource:United_States_of_America property:anthem ?j . ?j rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
USER
No, I meant United States of America. Could you tell me the answer for that?
(Q30,P85,c(Q484692))
Q30
['Q30', 'P85', {'concept': 'Q484692'}]
['United States of America', 'anthem', {'concept': 'hymn'}]
[]
Q44696
SYSTEM
The Star-Spangled Banner
Q44696
(Q30,P85,c(Q484692))
action filter_type
action find
entity Q30
relation P85
type Q484692
Banner [ANSWER] is the anthem for that administrative territory
['Q30', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?j WHERE { resource:Q30 property:P85 ?j . ?j rdf:type ontology:Q484692 }
The Star-Spangled Banner
Banner The Star-Spangled Banner is the anthem for that administrative territory
The Star-Spangled Banner
action filter_type
action find
entity United States of America
relation anthem
type hymn
['United States of America', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?j WHERE { resource:United_States_of_America property:anthem ?j . ?j rdf:type ontology:hymn }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q44696 Q8003805
P85
Q56061
USER
Does William have that hymn as its anthem ?
(Q8003805,P85,Q44696)
action is_in
entity Q8003805
action find
entity Q44696
relation P85
['Q8003805', 'P85', 'Q44696']
ASK WHERE { resource:Q44696 property:P85 resource:Q8003805 }
The Star-Spangled Banner William
action is_in
entity William
action find
entity The Star-Spangled Banner
relation anthem
['William', 'anthem', 'The Star-Spangled Banner']
ASK WHERE { resource:The_Star-Spangled_Banner property:anthem resource:William }
[]
administrative territorial entity
SYSTEM
NO
(Q8003805,P85,Q44696)
action is_in
entity Q8003805
action find
entity Q44696
relation P85
[ANSWER]
['Q8003805', 'P85', 'Q44696']
ASK WHERE { resource:Q44696 property:P85 resource:Q8003805 }
No
action is_in
entity William
action find
entity The Star-Spangled Banner
relation anthem
['William', 'anthem', 'The Star-Spangled Banner']
ASK WHERE { resource:The_Star-Spangled_Banner property:anthem resource:William }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2751 Q52279
P190
Q15617994
USER
Is Bernalda the sister city of Siena ?
(Q2751,P190,Q52279)
action is_in
entity Q52279
action find
entity Q2751
relation P190
['Q2751', 'P190', 'Q52279']
ASK WHERE { resource:Q2751 property:P190 resource:Q52279 }
Siena Bernalda
action is_in
entity Bernalda
action find
entity Siena
relation sister city
['Siena', 'sister city', 'Bernalda']
ASK WHERE { resource:Siena property:sister_city resource:Bernalda }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q2751,P190,Q52279)
action is_in
entity Q52279
action find
entity Q2751
relation P190
[ANSWER]
['Q2751', 'P190', 'Q52279']
ASK WHERE { resource:Q2751 property:P190 resource:Q52279 }
Yes
action is_in
entity Bernalda
action find
entity Siena
relation sister city
['Siena', 'sister city', 'Bernalda']
ASK WHERE { resource:Siena property:sister_city resource:Bernalda }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q517107
P840
Q15617994 Q166142 Q838948
USER
How many administrative territories are less number of applications or works of art set in than Rudolstadt ?
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q517107
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?i WHERE { { ?f property:P840 ?i . ?i rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q166142 } UNION { ?f property:P840 ?i . ?i rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q838948 } } GROUP BY ?i } . FILTER ( ?n < ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { VALUES ( ?l ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?a rdf:type ?l } . ?a property:P840 resource:Q517107 } } }
Rudolstadt
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Rudolstadt
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?i WHERE { { ?f property:narrative_location ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:application } UNION { ?f property:narrative_location ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:work_of_art } } GROUP BY ?i } . FILTER ( ?n < ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { VALUES ( ?l ) { ( ontology:application ) ( ontology:work_of_art ) } . ?a rdf:type ?l } . ?a property:narrative_location resource:Rudolstadt } } }
[]
designation for an administrative territorial entity application work of art
SYSTEM
46
Q20837 Q3278 Q1948 Q265 Q18021 Q712 Q711 Q252 Q1460 Q399 Q1979 Q165040 Q490398 Q12515 Q58477 Q733 Q854 Q819 Q340628 Q769680 Q230 Q12538 Q1044 Q1860611 Q1027 Q2009 Q843 Q2007 Q1029 Q511806 Q163966 Q223 Q12700 Q3207 Q159689 Q114 Q219 Q20571 Q1210 Q1005 Q683 Q874 Q1011 Q678 Q12545 Q53216
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q517107
relation P840
type Q166142
type Q838948
[ANSWER]
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?i WHERE { { ?f property:P840 ?i . ?i rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q166142 } UNION { ?f property:P840 ?i . ?i rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q838948 } } GROUP BY ?i } . FILTER ( ?n < ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { VALUES ( ?l ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?a rdf:type ?l } . ?a property:P840 resource:Q517107 } } }
Fanø Charente-Maritime Manitoba Uzbekistan Biella Fiji Mongolia Indonesia Sicily Armenia Prince Edward Island Duchy of Parma Peenemünde Gard Capua Paraguay Sri Lanka Laos Aggius Bornholm Georgia Haute-Garonne Sierra Leone Viby Mauritius Yukon Pakistan Northwest Territories Mozambique North Slope Borough Mitte Greenland Hautes-Pyrénées Aude Bomarzo Kenya Bulgaria Spoleto Lombardy Gambia Samoa Turkmenistan Cape Verde Tonga Hérault Aquileia
46
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Rudolstadt
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?i WHERE { { ?f property:narrative_location ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:application } UNION { ?f property:narrative_location ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:work_of_art } } GROUP BY ?i } . FILTER ( ?n < ?h ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { { VALUES ( ?l ) { ( ontology:application ) ( ontology:work_of_art ) } . ?a rdf:type ?l } . ?a property:narrative_location resource:Rudolstadt } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q47428
P840
Q15617994 Q166142 Q838948
USER
And also tell me about Valdobbiadene?
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q47428
relation P840
type Q166142
type Q838948
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?r ) WHERE { { ?h property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q166142 } UNION { ?h property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q838948 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P840 resource:Q47428 . { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } . FILTER ( ?r < ?d ) }
Valdobbiadene
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Valdobbiadene
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?r ) WHERE { { ?h property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:application } UNION { ?h property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:work_of_art } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:narrative_location resource:Valdobbiadene . { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:application ) ( ontology:work_of_art ) } } } } . FILTER ( ?r < ?d ) }
[]
designation for an administrative territorial entity application work of art
SYSTEM
46
Q20837 Q3278 Q1948 Q265 Q18021 Q712 Q711 Q252 Q1460 Q399 Q1979 Q165040 Q490398 Q12515 Q58477 Q733 Q854 Q819 Q340628 Q769680 Q230 Q12538 Q1044 Q1860611 Q1027 Q2009 Q843 Q2007 Q1029 Q511806 Q163966 Q223 Q12700 Q3207 Q159689 Q114 Q219 Q20571 Q1210 Q1005 Q683 Q874 Q1011 Q678 Q12545 Q53216
(c(Q166142)|c(Q838948),P840,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q47428
relation P840
type Q166142
type Q838948
[ANSWER]
[[{'concept': 'Q166142'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?r ) WHERE { { ?h property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q166142 } UNION { ?h property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q838948 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P840 resource:Q47428 . { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } } } } . FILTER ( ?r < ?d ) }
Fanø Charente-Maritime Manitoba Uzbekistan Biella Fiji Mongolia Indonesia Sicily Armenia Prince Edward Island Duchy of Parma Peenemünde Gard Capua Paraguay Sri Lanka Laos Aggius Bornholm Georgia Haute-Garonne Sierra Leone Viby Mauritius Yukon Pakistan Northwest Territories Mozambique North Slope Borough Mitte Greenland Hautes-Pyrénées Aude Bomarzo Kenya Bulgaria Spoleto Lombardy Gambia Samoa Turkmenistan Cape Verde Tonga Hérault Aquileia
46
action count
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Valdobbiadene
relation narrative location
type application
type work of art
[[{'concept': 'application'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?r ) WHERE { { ?h property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:application } UNION { ?h property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:work_of_art } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:narrative_location resource:Valdobbiadene . { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:application ) ( ontology:work_of_art ) } } } } . FILTER ( ?r < ?d ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?c ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?t ) WHERE { ?j property:P530 ?r . ?j rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?i ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?i = ?c ) }
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', 'Zambia']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?c ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?t ) WHERE { ?j property:diplomatic_relation ?r . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?i ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?i = ?c ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have a diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?c ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?t ) WHERE { ?j property:P530 ?r . ?j rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?i ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?i = ?c ) }
Italy
Italy have a diplomatic relationship with max number of administrative territories
Italy
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', 'Zambia']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?c ) { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?t ) WHERE { ?j property:diplomatic_relation ?r . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?i ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?i = ?c ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P37
Q34770
USER
What is the official language of that administrative territory ?
(Q38,P37,c(Q34770))
action filter_type
action find
entity Q38
relation P37
type Q34770
['Q38', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q38 property:P37 ?u . ?u rdf:type ontology:Q34770 }
Italy
action filter_type
action find
entity Italy
relation official language
type language
['Italy', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Italy property:official_language ?u . ?u rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q38,P37,c(Q34770))
action filter_type
action find
entity Q38
relation P37
type Q34770
The official language of that administrative territory is the [ANSWER]
['Q38', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q38 property:P37 ?u . ?u rdf:type ontology:Q34770 }
Italian
The official language of that administrative territory is the Italian
Italian
action filter_type
action find
entity Italy
relation official language
type language
['Italy', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Italy property:official_language ?u . ?u rdf:type ontology:language }
[]