Simple Question (Direct)
Simple Question
Q1157222
P47
Q20667921
USER
Who share the border with La Neuville-d'Aumont ?
(Q1157222,P47,c(Q20667921))
action filter_type
action find
entity Q1157222
relation P47
type Q20667921
['Q1157222', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?c WHERE { resource:Q1157222 property:P47 ?c . ?c rdf:type ontology:Q20667921 }
La Neuville-d'Aumont
action filter_type
action find
entity La Neuville-d'Aumont
relation shares border with
type type of french administrative division
["La Neuville-d'Aumont", 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?c WHERE { resource:La_Neuville-d'Aumont property:shares_border_with ?c . ?c rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q924614 Q1099010 Q920069
SYSTEM
Saint-Sulpice, Auteuil, Valdampierre
Q1099010 Q748641 Q920069 Q1162001 Q731406 Q924614 Q1161363
(Q1157222,P47,c(Q20667921))
action filter_type
action find
entity Q1157222
relation P47
type Q20667921
[ANSWERS] share the border with La Neuville-d'Aumont
['Q1157222', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?c WHERE { resource:Q1157222 property:P47 ?c . ?c rdf:type ontology:Q20667921 }
Auteuil Ressons-l'Abbaye Valdampierre Hodenc-l'Évêque Le Coudray-sur-Thelle Saint-Sulpice Le Déluge
Saint-Sulpice, Auteuil and Valdampierre share the border with La Neuville-d'Aumont
Saint-Sulpice Auteuil Valdampierre
action filter_type
action find
entity La Neuville-d'Aumont
relation shares border with
type type of french administrative division
["La Neuville-d'Aumont", 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?c WHERE { resource:La_Neuville-d'Aumont property:shares_border_with ?c . ?c rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q924614 Q1099010 Q920069
P47
Q20667921
USER
Which french administrative divisions have an adjacent border with Saint-Sulpice, Auteuil and Valdampierre ?
(c(Q20667921),P47,Q924614) (c(Q20667921),P47,Q1099010) (c(Q20667921),P47,Q920069)
action union
action filter_type
action find
entity Q924614
relation P47
type Q20667921
action filter_type
action find
entity Q1099010
relation P47
type Q20667921
action filter_type
action find
entity Q920069
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q924614'] [{'concept': 'Q20667921'}, 'P47', 'Q1099010'] [{'concept': 'Q20667921'}, 'P47', 'Q920069']
SELECT DISTINCT ?p WHERE { ?g property:P47 ?p . VALUES ( ?g ) { ( resource:Q924614 ) ( resource:Q1099010 ) } }
Saint-Sulpice Auteuil Valdampierre
action union
action filter_type
action find
entity Saint-Sulpice
relation shares border with
type type of french administrative division
action filter_type
action find
entity Auteuil
relation shares border with
type type of french administrative division
action filter_type
action find
entity Valdampierre
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Sulpice'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Auteuil'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Valdampierre']
SELECT DISTINCT ?p WHERE { ?g property:shares_border_with ?p . VALUES ( ?g ) { ( resource:Saint-Sulpice ) ( resource:Auteuil ) } }
[]
type of french administrative division
Q1106610 Q750697 Q924614
SYSTEM
Beaumont-les-Nonains, Warluis, Saint-Sulpice
Q750697 Q1106743 Q1346665 Q1099010 Q1157222 Q729600 Q1162001 Q936750 Q924614 Q1157222 Q920069 Q729600 Q1106574 Q1174297 Q1099010 Q936750 Q1106610 Q1157222 Q748641
(c(Q20667921),P47,Q924614) (c(Q20667921),P47,Q1099010) (c(Q20667921),P47,Q920069)
action union
action filter_type
action find
entity Q924614
relation P47
type Q20667921
action filter_type
action find
entity Q1099010
relation P47
type Q20667921
action filter_type
action find
entity Q920069
relation P47
type Q20667921
[ANSWERS] have an adjacent border with Saint-Sulpice, Auteuil and Valdampierre
[{'concept': 'Q20667921'}, 'P47', 'Q924614'] [{'concept': 'Q20667921'}, 'P47', 'Q1099010'] [{'concept': 'Q20667921'}, 'P47', 'Q920069']
SELECT DISTINCT ?p WHERE { ?g property:P47 ?p . VALUES ( ?g ) { ( resource:Q924614 ) ( resource:Q1099010 ) } }
Warluis Allonne Abbecourt Auteuil La Neuville-d'Aumont Frocourt Hodenc-l'Évêque La Neuville-Garnier Saint-Sulpice La Neuville-d'Aumont Valdampierre Frocourt Berneuil-en-Bray Pouilly Auteuil La Neuville-Garnier Beaumont-les-Nonains La Neuville-d'Aumont Ressons-l'Abbaye
Beaumont-les-Nonains, Warluis and Saint-Sulpice have an adjacent border with Saint-Sulpice, Auteuil and Valdampierre
Beaumont-les-Nonains Warluis Saint-Sulpice
action union
action filter_type
action find
entity Saint-Sulpice
relation shares border with
type type of french administrative division
action filter_type
action find
entity Auteuil
relation shares border with
type type of french administrative division
action filter_type
action find
entity Valdampierre
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Sulpice'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Auteuil'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Valdampierre']
SELECT DISTINCT ?p WHERE { ?g property:shares_border_with ?p . VALUES ( ?g ) { ( resource:Saint-Sulpice ) ( resource:Auteuil ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q750697
P17
Q15617994
USER
Which administrative territory is that french administrative division situated in ?
(Q750697,P17,c(Q15617994))
action filter_type
action find
entity Q750697
relation P17
type Q15617994
['Q750697', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q750697 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Warluis
action filter_type
action find
entity Warluis
relation country
type designation for an administrative territorial entity
['Warluis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Warluis property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q750697
SYSTEM
Did you mean Warluis ?
Q1106610 Q750697 Q924614
(Q1106610,P17,c(Q15617994)) (Q750697,P17,c(Q15617994)) (Q924614,P17,c(Q15617994))
[ANSWER]
['Q1106610', 'P17', {'concept': 'Q15617994'}] ['Q750697', 'P17', {'concept': 'Q15617994'}] ['Q924614', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q750697 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Beaumont-les-Nonains Warluis Saint-Sulpice
Did you mean Warluis ?
Warluis
['Beaumont-les-Nonains', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Warluis', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Saint-Sulpice', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Warluis property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q750697,P17,c(Q15617994))
['Q750697', 'P17', {'concept': 'Q15617994'}]
['Warluis', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q750697,P17,c(Q15617994))
action filter_type
action find
entity Q750697
relation P17
type Q15617994
That french administrative division is situated in [ANSWER]
['Q750697', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q750697 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
France
That french administrative division is situated in France
France
action filter_type
action find
entity Warluis
relation country
type designation for an administrative territorial entity
['Warluis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Warluis property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q683550
P206
Q15324 Q1267889 Q20667921
USER
How many french administrative divisions are located in the neighbourhood of less number of bodies of water or waterways than Urville-Nacqueville ?
(c(Q20667921),P206,c(Q15324)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action count
action filter_multi_types
action find
entity Q683550
relation P206
type Q15324
type Q1267889
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?z WHERE { { ?z property:P206 ?w . ?z rdf:type ontology:Q20667921 . ?w rdf:type ontology:Q15324 } UNION { ?z property:P206 ?w . ?z rdf:type ontology:Q20667921 . ?w rdf:type ontology:Q1267889 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { resource:Q683550 property:P206 ?p . { { ?p rdf:type ontology:Q15324 } UNION { ?p rdf:type ontology:Q1267889 } } } } . FILTER ( ?e < ?y ) }
Urville-Nacqueville
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type body of water
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action count
action filter_multi_types
action find
entity Urville-Nacqueville
relation located next to body of water
type body of water
type waterway
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?z WHERE { { ?z property:located_next_to_body_of_water ?w . ?z rdf:type ontology:type_of_french_administrative_division . ?w rdf:type ontology:body_of_water } UNION { ?z property:located_next_to_body_of_water ?w . ?z rdf:type ontology:type_of_french_administrative_division . ?w rdf:type ontology:waterway } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { resource:Urville-Nacqueville property:located_next_to_body_of_water ?p . { { ?p rdf:type ontology:body_of_water } UNION { ?p rdf:type ontology:waterway } } } } . FILTER ( ?e < ?y ) }
[]
body of water waterway type of french administrative division
SYSTEM
51
Q3769 Q1649363 Q467030 Q245066 Q956943 Q30974 Q147606 Q429770 Q1221458 Q236736 Q266886 Q207253 Q675318 Q1014763 Q652100 Q1221814 Q849165 Q1073039 Q1326390 Q751619 Q921780 Q14112 Q1162138 Q47045 Q926768 Q1649370 Q849065 Q1617681 Q654000 Q249884 Q849023 Q333447 Q1014814 Q662942 Q738523 Q1075733 Q1217913 Q26583 Q545015 Q478215 Q1757048 Q1014771 Q1014731 Q44401 Q1001582 Q691092 Q662229 Q752535 Q1165029 Q273297 Q284445
(c(Q20667921),P206,c(Q15324)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action count
action filter_multi_types
action find
entity Q683550
relation P206
type Q15324
type Q1267889
[ANSWER]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?z WHERE { { ?z property:P206 ?w . ?z rdf:type ontology:Q20667921 . ?w rdf:type ontology:Q15324 } UNION { ?z property:P206 ?w . ?z rdf:type ontology:Q20667921 . ?w rdf:type ontology:Q1267889 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { resource:Q683550 property:P206 ?p . { { ?p rdf:type ontology:Q15324 } UNION { ?p rdf:type ontology:Q1267889 } } } } . FILTER ( ?e < ?y ) }
French Guiana Saint-Leu L'Île-Rousse Chouvigny Le Port Rouen Fort-Mahon-Plage La Possession Saint-Quintin-sur-Sioule Vernon Sisco Mantes-la-Jolie Bussières-et-Pruns Trois-Bassins Saint-Philippe Menat Saint-Bonnet-de-Rochefort Poses Petite-Île Sérignan Val-de-Reuil Corsica Isches Saint-Denis Tahaa Saint-André Bègues Saint-Louis Monticello Saint-Pierre Mazerier Aigueperse Les Avirons Sainte-Marie Saint-Gal-sur-Sioule La Roche-de-Glun Saint-Agoulin Béhuard Chaptuzat Saint-Benoît Sainte-Suzanne L'Étang-Salé Sainte-Rose Cayenne Batz-sur-Mer Bras-Panon Jenzat Valras-Plage Le Pouliguen Ébreuil Pontgibaud
51
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type body of water
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action count
action filter_multi_types
action find
entity Urville-Nacqueville
relation located next to body of water
type body of water
type waterway
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?z WHERE { { ?z property:located_next_to_body_of_water ?w . ?z rdf:type ontology:type_of_french_administrative_division . ?w rdf:type ontology:body_of_water } UNION { ?z property:located_next_to_body_of_water ?w . ?z rdf:type ontology:type_of_french_administrative_division . ?w rdf:type ontology:waterway } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { resource:Urville-Nacqueville property:located_next_to_body_of_water ?p . { { ?p rdf:type ontology:body_of_water } UNION { ?p rdf:type ontology:waterway } } } } . FILTER ( ?e < ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1031980
P206
Q15324 Q1267889 Q20667921
USER
And also tell me about Escalles?
(c(Q20667921),P206,c(Q15324)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action count
action filter_multi_types
action find
entity Q1031980
relation P206
type Q15324
type Q1267889
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?a WHERE { { ?a property:P206 ?l . ?a rdf:type ontology:Q20667921 . ?l rdf:type ontology:Q15324 } UNION { ?a property:P206 ?l . ?a rdf:type ontology:Q20667921 . ?l rdf:type ontology:Q1267889 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Q1031980 property:P206 ?w . { { ?w rdf:type ontology:Q15324 } UNION { ?w rdf:type ontology:Q1267889 } } } } . FILTER ( ?e < ?h ) }
Escalles
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type body of water
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action count
action filter_multi_types
action find
entity Escalles
relation located next to body of water
type body of water
type waterway
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?a WHERE { { ?a property:located_next_to_body_of_water ?l . ?a rdf:type ontology:type_of_french_administrative_division . ?l rdf:type ontology:body_of_water } UNION { ?a property:located_next_to_body_of_water ?l . ?a rdf:type ontology:type_of_french_administrative_division . ?l rdf:type ontology:waterway } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Escalles property:located_next_to_body_of_water ?w . { { ?w rdf:type ontology:body_of_water } UNION { ?w rdf:type ontology:waterway } } } } . FILTER ( ?e < ?h ) }
[]
body of water waterway type of french administrative division
SYSTEM
51
Q3769 Q1649363 Q467030 Q245066 Q956943 Q30974 Q147606 Q429770 Q1221458 Q236736 Q266886 Q207253 Q675318 Q1014763 Q652100 Q1221814 Q849165 Q1073039 Q1326390 Q751619 Q921780 Q14112 Q1162138 Q47045 Q926768 Q1649370 Q849065 Q1617681 Q654000 Q249884 Q849023 Q333447 Q1014814 Q662942 Q738523 Q1075733 Q1217913 Q26583 Q545015 Q478215 Q1757048 Q1014771 Q1014731 Q44401 Q1001582 Q691092 Q662229 Q752535 Q1165029 Q273297 Q284445
(c(Q20667921),P206,c(Q15324)|c(Q1267889))
action count
action less
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
action count
action filter_multi_types
action find
entity Q1031980
relation P206
type Q15324
type Q1267889
[ANSWER]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?a WHERE { { ?a property:P206 ?l . ?a rdf:type ontology:Q20667921 . ?l rdf:type ontology:Q15324 } UNION { ?a property:P206 ?l . ?a rdf:type ontology:Q20667921 . ?l rdf:type ontology:Q1267889 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Q1031980 property:P206 ?w . { { ?w rdf:type ontology:Q15324 } UNION { ?w rdf:type ontology:Q1267889 } } } } . FILTER ( ?e < ?h ) }
French Guiana Saint-Leu L'Île-Rousse Chouvigny Le Port Rouen Fort-Mahon-Plage La Possession Saint-Quintin-sur-Sioule Vernon Sisco Mantes-la-Jolie Bussières-et-Pruns Trois-Bassins Saint-Philippe Menat Saint-Bonnet-de-Rochefort Poses Petite-Île Sérignan Val-de-Reuil Corsica Isches Saint-Denis Tahaa Saint-André Bègues Saint-Louis Monticello Saint-Pierre Mazerier Aigueperse Les Avirons Sainte-Marie Saint-Gal-sur-Sioule La Roche-de-Glun Saint-Agoulin Béhuard Chaptuzat Saint-Benoît Sainte-Suzanne L'Étang-Salé Sainte-Rose Cayenne Batz-sur-Mer Bras-Panon Jenzat Valras-Plage Le Pouliguen Ébreuil Pontgibaud
51
action count
action less
action union
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type body of water
action find_tuple_counts
relation located next to body of water
type type of french administrative division
type waterway
action count
action filter_multi_types
action find
entity Escalles
relation located next to body of water
type body of water
type waterway
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?a WHERE { { ?a property:located_next_to_body_of_water ?l . ?a rdf:type ontology:type_of_french_administrative_division . ?l rdf:type ontology:body_of_water } UNION { ?a property:located_next_to_body_of_water ?l . ?a rdf:type ontology:type_of_french_administrative_division . ?l rdf:type ontology:waterway } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Escalles property:located_next_to_body_of_water ?w . { { ?w rdf:type ontology:body_of_water } UNION { ?w rdf:type ontology:waterway } } } } . FILTER ( ?e < ?h ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7626073 Q1031980
P17
Q15617994
USER
Which administrative territories are Escalles or Strømmen Stadion located in ?
OR((Q1031980,P17,c(Q15617994)), (Q7626073,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1031980
relation P17
action find
entity Q7626073
relation P17
type Q15617994
{'OR': [['Q1031980', 'P17', {'concept': 'Q15617994'}], ['Q7626073', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?v property:P17 ?w . VALUES ( ?v ) { ( resource:Q1031980 ) ( resource:Q7626073 ) } } . ?w rdf:type ontology:Q15617994 }
Strømmen Stadion Escalles
action filter_type
action union
action find
entity Escalles
relation country
action find
entity Strømmen Stadion
relation country
type designation for an administrative territorial entity
{'OR': [['Escalles', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Strømmen Stadion', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?v property:country ?w . VALUES ( ?v ) { ( resource:Escalles ) ( resource:Strømmen_Stadion ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q20
SYSTEM
France, Norway
Q142 Q20
OR((Q1031980,P17,c(Q15617994)), (Q7626073,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1031980
relation P17
action find
entity Q7626073
relation P17
type Q15617994
Escalles or Strømmen Stadion are located in [ANSWERS]
{'OR': [['Q1031980', 'P17', {'concept': 'Q15617994'}], ['Q7626073', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?v property:P17 ?w . VALUES ( ?v ) { ( resource:Q1031980 ) ( resource:Q7626073 ) } } . ?w rdf:type ontology:Q15617994 }
France Norway
Escalles or Strømmen Stadion are located in France and Norway
France Norway
action filter_type
action union
action find
entity Escalles
relation country
action find
entity Strømmen Stadion
relation country
type designation for an administrative territorial entity
{'OR': [['Escalles', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Strømmen Stadion', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?v property:country ?w . VALUES ( ?v ) { ( resource:Escalles ) ( resource:Strømmen_Stadion ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q7725634 Q2088357
USER
How many administrative territories are the countries of origin of lesser number of literary works and musical ensembles than that administrative territory ?
(c(Q7725634)|c(Q2088357),P495,c(Q15617994))
[[{'concept': 'Q7725634'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
[[{'concept': 'literary work'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
designation for an administrative territorial entity literary work musical ensemble
Comparative|Count over More/Less|Mult. entity type|Clarification
Q142
SYSTEM
Did you mean France ?
(c(Q7725634)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Did you mean France ?
France
[[{'concept': 'literary work'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Norway. Could you tell me the answer for that?
(c(Q7725634)|c(Q2088357),P495,c(Q15617994))
Q20
[[{'concept': 'Q7725634'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'literary work'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
158
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q36 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q7725634)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q7725634 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Poland Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
158
[[{'concept': 'literary work'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:literary_work . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q62825
P941
Q3895768
USER
How many fictional locations had France or maritime republics as a source of inspiration ?
(c(Q3895768),P941,Q142) (c(Q3895768),P941,Q62825)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P941
type Q3895768
action filter_type
action find_reverse
entity Q62825
relation P941
type Q3895768
[{'concept': 'Q3895768'}, 'P941', 'Q142'] [{'concept': 'Q3895768'}, 'P941', 'Q62825']
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:P941 ?h . VALUES ( ?h ) { ( resource:Q142 ) ( resource:Q62825 ) } }
France maritime republics
action count
action union
action filter_type
action find_reverse
entity France
relation inspired by
type fictional location
action filter_type
action find_reverse
entity maritime republics
relation inspired by
type fictional location
[{'concept': 'fictional location'}, 'inspired by', 'France'] [{'concept': 'fictional location'}, 'inspired by', 'maritime republics']
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:inspired_by ?h . VALUES ( ?h ) { ( resource:France ) ( resource:maritime_republics ) } }
[]
fictional location
SYSTEM
2
Q18761546 Q1144305
(c(Q3895768),P941,Q142) (c(Q3895768),P941,Q62825)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P941
type Q3895768
action filter_type
action find_reverse
entity Q62825
relation P941
type Q3895768
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', 'Q142'] [{'concept': 'Q3895768'}, 'P941', 'Q62825']
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:P941 ?h . VALUES ( ?h ) { ( resource:Q142 ) ( resource:Q62825 ) } }
Argos Aquilonia
2
action count
action union
action filter_type
action find_reverse
entity France
relation inspired by
type fictional location
action filter_type
action find_reverse
entity maritime republics
relation inspired by
type fictional location
[{'concept': 'fictional location'}, 'inspired by', 'France'] [{'concept': 'fictional location'}, 'inspired by', 'maritime republics']
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:inspired_by ?h . VALUES ( ?h ) { ( resource:France ) ( resource:maritime_republics ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with approximately 110 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 110
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?k ) WHERE { ?i property:P530 ?r . ?i rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?k = 110 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 110
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?k ) WHERE { ?i property:diplomatic_relation ?r . ?i rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?k = 110 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 110
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?k ) WHERE { ?i property:P530 ?r . ?i rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?i } . FILTER ( ?k = 110 ) }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 110
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?p ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?k ) WHERE { ?i property:diplomatic_relation ?r . ?i rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . FILTER ( ?k = 110 ) }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q180736
Q838948
USER
And what about Les Misérables?
(Q180736,P840,c(Q838948))
action count
action filter_type
action find
entity Q180736
relation P840
type Q838948
['Q180736', 'P840', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { resource:Q180736 property:P840 ?d . ?d rdf:type ontology:Q838948 }
Les Misérables
action count
action filter_type
action find
entity Les Misérables
relation narrative location
type work of art
['Les Misérables', 'narrative location', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { resource:Les_Misérables property:narrative_location ?d . ?d rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
1
(Q180736,P840,c(Q838948))
action count
action filter_type
action find
entity Q180736
relation P840
type Q838948
[ANSWER]
['Q180736', 'P840', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { resource:Q180736 property:P840 ?d . ?d rdf:type ontology:Q838948 }
1
action count
action filter_type
action find
entity Les Misérables
relation narrative location
type work of art
['Les Misérables', 'narrative location', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { resource:Les_Misérables property:narrative_location ?d . ?d rdf:type ontology:work_of_art }
[]