Simple Question (Direct)
Simple Question
Q9388
P190
Q20667921
USER
Which french administrative division is twin town of Giaglione ?
(Q9388,P190,c(Q20667921))
action filter_type
action find
entity Q9388
relation P190
type Q20667921
['Q9388', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q9388 property:P190 ?g . ?g rdf:type ontology:Q20667921 }
Giaglione
action filter_type
action find
entity Giaglione
relation sister city
type type of french administrative division
['Giaglione', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Giaglione property:sister_city ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1231210
SYSTEM
Bramans
Q1231210
(Q9388,P190,c(Q20667921))
action filter_type
action find
entity Q9388
relation P190
type Q20667921
[ANSWER] is twin town of Giaglione
['Q9388', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?g WHERE { resource:Q9388 property:P190 ?g . ?g rdf:type ontology:Q20667921 }
Bramans
Bramans is twin town of Giaglione
Bramans
action filter_type
action find
entity Giaglione
relation sister city
type type of french administrative division
['Giaglione', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?g WHERE { resource:Giaglione property:sister_city ?g . ?g rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9388
P20
Q502895
USER
Which person expired at Giaglione ?
(c(Q502895),P20,Q9388)
action filter_type
action find_reverse
entity Q9388
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q9388']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q9388 . ?y rdf:type ontology:Q502895 }
Giaglione
action filter_type
action find_reverse
entity Giaglione
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Giaglione']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Giaglione . ?y rdf:type ontology:common_name }
[]
common name
Q3620270
SYSTEM
Antonio Tonini
Q3620270
(c(Q502895),P20,Q9388)
action filter_type
action find_reverse
entity Q9388
relation P20
type Q502895
[ANSWER] expired at Giaglione
[{'concept': 'Q502895'}, 'P20', 'Q9388']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q9388 . ?y rdf:type ontology:Q502895 }
Antonio Tonini
Antonio Tonini expired at Giaglione
Antonio Tonini
action filter_type
action find_reverse
entity Giaglione
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Giaglione']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Giaglione . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9388
P17
Q15617994
USER
Which administrative territory is that one situated in ?
(Q3620270,P17,c(Q15617994))
action filter_type
action find
entity Q9388
relation P17
type Q15617994
['Q3620270', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q9388 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Giaglione
action filter_type
action find
entity Giaglione
relation country
type designation for an administrative territorial entity
['Antonio Tonini', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Giaglione property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3620270,P17,c(Q15617994))
action filter_type
action find
entity Q9388
relation P17
type Q15617994
That one is situated in [ANSWER]
['Q3620270', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q9388 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Italy
That one is situated in Italy
Italy
action filter_type
action find
entity Giaglione
relation country
type designation for an administrative territorial entity
['Antonio Tonini', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Giaglione property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P194
Q1752346 Q35749 Q15617994
USER
Which administrative territories have min number of assemblies or parliaments as their legislative body ?
(c(Q15617994),P194,c(Q1752346)|c(Q35749))
action argmin
action union
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action find_tuple_counts
relation P194
type Q15617994
type Q35749
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?g ) { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?a ) WHERE { VALUES ( ?d ) { ( ontology:Q1752346 ) ( ontology:Q35749 ) } . ?q rdf:type ?d } GROUP BY ?x } } . { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?v ) WHERE { VALUES ( ?f ) { ( ontology:Q1752346 ) ( ontology:Q35749 ) } . ?r rdf:type ?f } GROUP BY ?i } . FILTER ( ?v = ?g ) }
action argmin
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?g ) { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?a ) WHERE { VALUES ( ?d ) { ( ontology:assembly ) ( ontology:parliament ) } . ?q rdf:type ?d } GROUP BY ?x } } . { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?v ) WHERE { VALUES ( ?f ) { ( ontology:assembly ) ( ontology:parliament ) } . ?r rdf:type ?f } GROUP BY ?i } . FILTER ( ?v = ?g ) }
[]
assembly parliament designation for an administrative territorial entity
Q30 Q148 Q17
SYSTEM
United States of America, People's Republic of China, Japan
Q805 Q800 Q1462 Q1250 Q2806757 Q148 Q189 Q786 Q710 Q252320 Q187035 Q1460 Q3361 Q43 Q792 Q779011 Q889 Q884 Q958 Q12574 Q153529 Q12761 Q244 Q32 Q31 Q30 Q37 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q12661 Q1273 Q1279 Q1049 Q1458 Q227 Q347 Q17 Q902 Q191 Q114 Q1210 Q917 Q736 Q34020 Q686 Q760 Q574 Q694594 Q1222 Q774 Q948 Q1016 Q27 Q1011 Q1243 Q12620 Q12626 Q672 Q1237
(c(Q15617994),P194,c(Q1752346)|c(Q35749))
action argmin
action union
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action find_tuple_counts
relation P194
type Q15617994
type Q35749
[ANSWERS] have min number of assemblies or parliaments as their legislative body
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?g ) { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?a ) WHERE { VALUES ( ?d ) { ( ontology:Q1752346 ) ( ontology:Q35749 ) } . ?q rdf:type ?d } GROUP BY ?x } } . { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?v ) WHERE { VALUES ( ?f ) { ( ontology:Q1752346 ) ( ontology:Q35749 ) } . ?r rdf:type ?f } GROUP BY ?i } . FILTER ( ?v = ?g ) }
Yemen Costa Rica Sardinia Friuli–Venezia Giulia 105 Mile Post Indian Reserve No. 2 People's Republic of China Iceland Dominican Republic Kiribati Pleinfeld Principality of Albania Sicily Doubs Turkey El Salvador Principality of Montenegro Afghanistan South Korea South Sudan Loiret Duchy of Milan Seine-Saint-Denis Barbados Luxembourg Belgium United States of America Lithuania Apulia Kleinmachnow District of Keewatin Lazio Abruzzo Finistère Montenegro Nord Tuscany Marche Sudan Calabria Azerbaijan Liechtenstein Japan Bangladesh Estonia Kenya Lombardy Bhutan Ecuador Niue Vanuatu Saint Lucia East Timor Bremen-Verden Aosta Valley Guatemala Tunisia Libya Ireland Cape Verde Veneto Mayenne Meurthe-et-Moselle Tuvalu Trentino-South Tyrol
United States of America, People's Republic of China and Japan have min number of assemblies or parliaments as their legislative body
United States of America People's Republic of China Japan
action argmin
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MIN ( ?a ) AS ?g ) { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?a ) WHERE { VALUES ( ?d ) { ( ontology:assembly ) ( ontology:parliament ) } . ?q rdf:type ?d } GROUP BY ?x } } . { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?v ) WHERE { VALUES ( ?f ) { ( ontology:assembly ) ( ontology:parliament ) } . ?r rdf:type ?f } GROUP BY ?i } . FILTER ( ?v = ?g ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q275579
P530
Q15617994
USER
Do Mering have ambassadorial relations with those ones ?
(Q275579,P530,Q30) (Q275579,P530,Q148) (Q275579,P530,Q17)
action is_in
entity prev_answer
action find
entity Q275579
relation P530
['Q275579', 'P530', 'Q30'] ['Q275579', 'P530', 'Q148'] ['Q275579', 'P530', 'Q17']
ASK WHERE { resource:Q275579 property:P530 ?x . VALUES ( ?x ) { ( resource:Q805 ) ( resource:Q800 ) ( resource:Q1462 ) } }
Mering
action is_in
entity prev_answer
action find
entity Mering
relation diplomatic relation
['Mering', 'diplomatic relation', 'United States of America'] ['Mering', 'diplomatic relation', "People's Republic of China"] ['Mering', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Mering property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Yemen ) ( resource:Costa_Rica ) ( resource:Sardinia ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q275579,P530,Q30) (Q275579,P530,Q148) (Q275579,P530,Q17)
action is_in
entity prev_answer
action find
entity Q275579
relation P530
[ANSWER]
['Q275579', 'P530', 'Q30'] ['Q275579', 'P530', 'Q148'] ['Q275579', 'P530', 'Q17']
ASK WHERE { resource:Q275579 property:P530 ?x . VALUES ( ?x ) { ( resource:Q805 ) ( resource:Q800 ) ( resource:Q1462 ) } }
No
action is_in
entity prev_answer
action find
entity Mering
relation diplomatic relation
['Mering', 'diplomatic relation', 'United States of America'] ['Mering', 'diplomatic relation', "People's Republic of China"] ['Mering', 'diplomatic relation', 'Japan']
ASK WHERE { resource:Mering property:diplomatic_relation ?x . VALUES ( ?x ) { ( resource:Yemen ) ( resource:Costa_Rica ) ( resource:Sardinia ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17
P610
Q8502
USER
Which is the highest peak of Japan ?
(Q17,P610,c(Q8502))
action filter_type
action find
entity Q17
relation P610
type Q8502
['Q17', 'P610', {'concept': 'Q8502'}]
SELECT DISTINCT ?n WHERE { resource:Q17 property:P610 ?n . ?n rdf:type ontology:Q8502 }
Japan
action filter_type
action find
entity Japan
relation highest point
type mountain
['Japan', 'highest point', {'concept': 'mountain'}]
SELECT DISTINCT ?n WHERE { resource:Japan property:highest_point ?n . ?n rdf:type ontology:mountain }
[]
mountain
Q39231
SYSTEM
Mount Fuji
Q39231
(Q17,P610,c(Q8502))
action filter_type
action find
entity Q17
relation P610
type Q8502
The highest peak of Japan is the [ANSWER]
['Q17', 'P610', {'concept': 'Q8502'}]
SELECT DISTINCT ?n WHERE { resource:Q17 property:P610 ?n . ?n rdf:type ontology:Q8502 }
Mount Fuji
The highest peak of Japan is the Mount Fuji
Mount Fuji
action filter_type
action find
entity Japan
relation highest point
type mountain
['Japan', 'highest point', {'concept': 'mountain'}]
SELECT DISTINCT ?n WHERE { resource:Japan property:highest_point ?n . ?n rdf:type ontology:mountain }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P272
Q838948
USER
Which work of art had United States of America as the production house ?
(c(Q838948),P272,Q30)
action filter_type
action find_reverse
entity Q30
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q30']
SELECT DISTINCT ?w WHERE { ?w property:P272 resource:Q30 . ?w rdf:type ontology:Q838948 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'United States of America']
SELECT DISTINCT ?w WHERE { ?w property:production_company resource:United_States_of_America . ?w rdf:type ontology:work_of_art }
[]
work of art
Q1424889
SYSTEM
Crustacés et Coquillages
Q1424889
(c(Q838948),P272,Q30)
action filter_type
action find_reverse
entity Q30
relation P272
type Q838948
And [ANSWER] had United States of America as the production house
[{'concept': 'Q838948'}, 'P272', 'Q30']
SELECT DISTINCT ?w WHERE { ?w property:P272 resource:Q30 . ?w rdf:type ontology:Q838948 }
Crustacés et Coquillages
And Crustacés et Coquillages had United States of America as the production house
Crustacés et Coquillages
action filter_type
action find_reverse
entity United States of America
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'United States of America']
SELECT DISTINCT ?w WHERE { ?w property:production_company resource:United_States_of_America . ?w rdf:type ontology:work_of_art }
[]