Simple Question (Direct)
Simple Question
Q1389917
P47
Q20667921
USER
Which french administrative divisions have a shared border with Souel ?
(Q1389917,P47,c(Q20667921))
action filter_type
action find
entity Q1389917
relation P47
type Q20667921
['Q1389917', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q1389917 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Souel
action filter_type
action find
entity Souel
relation shares border with
type type of french administrative division
['Souel', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Souel property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q635125 Q1466902 Q1214374
SYSTEM
Cordes-sur-Ciel, Livers-Cazelles, Amarens
Q1342219 Q1214374 Q1341828 Q1466159 Q1466902 Q635125
(Q1389917,P47,c(Q20667921))
action filter_type
action find
entity Q1389917
relation P47
type Q20667921
[ANSWERS] have a shared border with Souel
['Q1389917', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { resource:Q1389917 property:P47 ?z . ?z rdf:type ontology:Q20667921 }
Donnazac Amarens Frausseilles Noailles Livers-Cazelles Cordes-sur-Ciel
Cordes-sur-Ciel, Livers-Cazelles and Amarens have a shared border with Souel
Cordes-sur-Ciel Livers-Cazelles Amarens
action filter_type
action find
entity Souel
relation shares border with
type type of french administrative division
['Souel', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { resource:Souel property:shares_border_with ?z . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q635125
P36
Q20667921
USER
Which french administrative division has Cordes-sur-Ciel as its capital ?
(c(Q20667921),P36,Q635125)
action filter_type
action find_reverse
entity Q635125
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q635125']
SELECT DISTINCT ?d WHERE { ?d property:P36 resource:Q635125 . ?d rdf:type ontology:Q20667921 }
Cordes-sur-Ciel
action filter_type
action find_reverse
entity Cordes-sur-Ciel
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Cordes-sur-Ciel']
SELECT DISTINCT ?d WHERE { ?d property:capital resource:Cordes-sur-Ciel . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1725037
SYSTEM
canton of Cordes-sur-Ciel
Q1725037
(c(Q20667921),P36,Q635125)
action filter_type
action find_reverse
entity Q635125
relation P36
type Q20667921
The [ANSWER] has Cordes-sur-Ciel as its capital
[{'concept': 'Q20667921'}, 'P36', 'Q635125']
SELECT DISTINCT ?d WHERE { ?d property:P36 resource:Q635125 . ?d rdf:type ontology:Q20667921 }
canton of Cordes-sur-Ciel
The canton of Cordes-sur-Ciel has Cordes-sur-Ciel as its capital
canton of Cordes-sur-Ciel
action filter_type
action find_reverse
entity Cordes-sur-Ciel
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Cordes-sur-Ciel']
SELECT DISTINCT ?d WHERE { ?d property:capital resource:Cordes-sur-Ciel . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q635125
P19
Q502895
USER
Who have location of birth at Cordes-sur-Ciel ?
(c(Q502895),P19,Q635125)
action filter_type
action find_reverse
entity Q635125
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q635125']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?q property:P19 resource:Q635125 }
Cordes-sur-Ciel
action filter_type
action find_reverse
entity Cordes-sur-Ciel
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Cordes-sur-Ciel']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?q property:place_of_birth resource:Cordes-sur-Ciel }
[]
common name
Q2834572 Q5742020
SYSTEM
Alexis Littré, Camille Raynaud
Q2834572 Q5742020
(c(Q502895),P19,Q635125)
action filter_type
action find_reverse
entity Q635125
relation P19
type Q502895
[ANSWERS] have location of birth at Cordes-sur-Ciel
[{'concept': 'Q502895'}, 'P19', 'Q635125']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . ?q property:P19 resource:Q635125 }
Alexis Littré Camille Raynaud
Alexis Littré and Camille Raynaud have location of birth at Cordes-sur-Ciel
Alexis Littré Camille Raynaud
action filter_type
action find_reverse
entity Cordes-sur-Ciel
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Cordes-sur-Ciel']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . ?q property:place_of_birth resource:Cordes-sur-Ciel }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q635125
P1376
Q20667921
USER
Which french administrative division has that one has its first city ?
(Q2834572,P1376,c(Q20667921)) (Q5742020,P1376,c(Q20667921))
action filter_type
action find
entity Q635125
relation P1376
type Q20667921
['Q2834572', 'P1376', {'concept': 'Q20667921'}] ['Q5742020', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q635125 property:P1376 ?v . ?v rdf:type ontology:Q20667921 }
Cordes-sur-Ciel
action filter_type
action find
entity Cordes-sur-Ciel
relation capital of
type type of french administrative division
['Alexis Littré', 'capital of', {'concept': 'type of french administrative division'}] ['Camille Raynaud', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Cordes-sur-Ciel property:capital_of ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1725037
SYSTEM
canton of Cordes-sur-Ciel
Q1725037
(Q2834572,P1376,c(Q20667921)) (Q5742020,P1376,c(Q20667921))
action filter_type
action find
entity Q635125
relation P1376
type Q20667921
The [ANSWER] has that one has its first city
['Q2834572', 'P1376', {'concept': 'Q20667921'}] ['Q5742020', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { resource:Q635125 property:P1376 ?v . ?v rdf:type ontology:Q20667921 }
canton of Cordes-sur-Ciel
The canton of Cordes-sur-Ciel has that one has its first city
canton of Cordes-sur-Ciel
action filter_type
action find
entity Cordes-sur-Ciel
relation capital of
type type of french administrative division
['Alexis Littré', 'capital of', {'concept': 'type of french administrative division'}] ['Camille Raynaud', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { resource:Cordes-sur-Ciel property:capital_of ?v . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q472574 Q635125
P1376
Q20667921
USER
Or Pernes-les-Fontaines?
OR((Q635125,P1376,c(Q20667921)), (Q472574,P1376,c(Q20667921)))
action filter_type
action union
action find
entity Q635125
relation P1376
action find
entity Q472574
relation P1376
type Q20667921
{'OR': [['Q635125', 'P1376', {'concept': 'Q20667921'}], ['Q472574', 'P1376', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?q ) { ( resource:Q635125 ) ( resource:Q472574 ) } . ?q property:P1376 ?j } . ?j rdf:type ontology:Q20667921 }
Pernes-les-Fontaines Cordes-sur-Ciel
action filter_type
action union
action find
entity Cordes-sur-Ciel
relation capital of
action find
entity Pernes-les-Fontaines
relation capital of
type type of french administrative division
{'OR': [['Cordes-sur-Ciel', 'capital of', {'concept': 'type of french administrative division'}], ['Pernes-les-Fontaines', 'capital of', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?q ) { ( resource:Cordes-sur-Ciel ) ( resource:Pernes-les-Fontaines ) } . ?q property:capital_of ?j } . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1725037 Q1726650
SYSTEM
canton of Cordes-sur-Ciel, canton of Pernes-les-Fontaines
Q1725037 Q1726650
OR((Q635125,P1376,c(Q20667921)), (Q472574,P1376,c(Q20667921)))
action filter_type
action union
action find
entity Q635125
relation P1376
action find
entity Q472574
relation P1376
type Q20667921
[ANSWERS]
{'OR': [['Q635125', 'P1376', {'concept': 'Q20667921'}], ['Q472574', 'P1376', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?q ) { ( resource:Q635125 ) ( resource:Q472574 ) } . ?q property:P1376 ?j } . ?j rdf:type ontology:Q20667921 }
canton of Cordes-sur-Ciel canton of Pernes-les-Fontaines
canton of Cordes-sur-Ciel canton of Pernes-les-Fontaines
action filter_type
action union
action find
entity Cordes-sur-Ciel
relation capital of
action find
entity Pernes-les-Fontaines
relation capital of
type type of french administrative division
{'OR': [['Cordes-sur-Ciel', 'capital of', {'concept': 'type of french administrative division'}], ['Pernes-les-Fontaines', 'capital of', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { { VALUES ( ?q ) { ( resource:Cordes-sur-Ciel ) ( resource:Pernes-les-Fontaines ) } . ?q property:capital_of ?j } . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4506246 Q1725037
P17
Q15617994
USER
Which administrative territories are canton of Cordes-sur-Ciel or Tskhinvali railway station a part of ?
OR((Q1725037,P17,c(Q15617994)), (Q4506246,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1725037
relation P17
action find
entity Q4506246
relation P17
type Q15617994
{'OR': [['Q1725037', 'P17', {'concept': 'Q15617994'}], ['Q4506246', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1725037 property:P17 ?j } UNION { resource:Q4506246 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Tskhinvali railway station canton of Cordes-sur-Ciel
action filter_type
action union
action find
entity canton of Cordes-sur-Ciel
relation country
action find
entity Tskhinvali railway station
relation country
type designation for an administrative territorial entity
{'OR': [['canton of Cordes-sur-Ciel', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tskhinvali railway station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:canton_of_Cordes-sur-Ciel property:country ?j } UNION { resource:Tskhinvali_railway_station property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q230
SYSTEM
France, Georgia
Q142 Q230
OR((Q1725037,P17,c(Q15617994)), (Q4506246,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1725037
relation P17
action find
entity Q4506246
relation P17
type Q15617994
[ANSWERS] are canton of Cordes-sur-Ciel or Tskhinvali railway station a part of
{'OR': [['Q1725037', 'P17', {'concept': 'Q15617994'}], ['Q4506246', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1725037 property:P17 ?j } UNION { resource:Q4506246 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
France Georgia
France and Georgia are canton of Cordes-sur-Ciel or Tskhinvali railway station a part of
France Georgia
action filter_type
action union
action find
entity canton of Cordes-sur-Ciel
relation country
action find
entity Tskhinvali railway station
relation country
type designation for an administrative territorial entity
{'OR': [['canton of Cordes-sur-Ciel', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tskhinvali railway station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:canton_of_Cordes-sur-Ciel property:country ?j } UNION { resource:Tskhinvali_railway_station property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q4506246
P17
Q15617994
USER
How many administrative territories are Tskhinvali railway station located in ?
(Q4506246,P17,c(Q15617994))
action count
action filter_type
action find
entity Q4506246
relation P17
type Q15617994
['Q4506246', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q4506246 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Tskhinvali railway station
action count
action filter_type
action find
entity Tskhinvali railway station
relation country
type designation for an administrative territorial entity
['Tskhinvali railway station', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Tskhinvali_railway_station property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q230
(Q4506246,P17,c(Q15617994))
action count
action filter_type
action find
entity Q4506246
relation P17
type Q15617994
[ANSWER]
['Q4506246', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q4506246 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Georgia
1
action count
action filter_type
action find
entity Tskhinvali railway station
relation country
type designation for an administrative territorial entity
['Tskhinvali railway station', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Tskhinvali_railway_station property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q2803095
P17
Q15617994
USER
And what about Jaktorów?
(Q2803095,P17,c(Q15617994))
action count
action filter_type
action find
entity Q2803095
relation P17
type Q15617994
['Q2803095', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Q2803095 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Jaktorów
action count
action filter_type
action find
entity Jaktorów
relation country
type designation for an administrative territorial entity
['Jaktorów', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Jaktorów property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q36
(Q2803095,P17,c(Q15617994))
action count
action filter_type
action find
entity Q2803095
relation P17
type Q15617994
[ANSWER]
['Q2803095', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Q2803095 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Poland
1
action count
action filter_type
action find
entity Jaktorów
relation country
type designation for an administrative territorial entity
['Jaktorów', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Jaktorów property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q7337862
Q15617994
USER
And also tell me about River Tarrant?
(Q7337862,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7337862
relation P17
type Q15617994
['Q7337862', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { resource:Q7337862 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
River Tarrant
action count
action filter_type
action find
entity River Tarrant
relation country
type designation for an administrative territorial entity
['River Tarrant', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { resource:River_Tarrant property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q7337862,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7337862
relation P17
type Q15617994
[ANSWER]
['Q7337862', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { resource:Q7337862 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity River Tarrant
relation country
type designation for an administrative territorial entity
['River Tarrant', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { resource:River_Tarrant property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q751619
P206
Q15324 Q355304 Q20667921
USER
Which french administrative divisions are located next to greater number of bodies of water and watercourses than Sérignan ?
(c(Q20667921),P206,c(Q15324)|c(Q355304))
action greater
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action count
action filter_multi_types
action find
entity Q751619
relation P206
type Q15324
type Q355304
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { { ?g rdf:type ontology:Q15324 } UNION { ?g rdf:type ontology:Q355304 } } . resource:Q751619 property:P206 ?g } } . FILTER ( ?u > ?f ) }
Sérignan
action greater
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 watercourse
action count
action filter_multi_types
action find
entity Sérignan
relation located next to body of water
type body of water
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?a . VALUES ( ?a ) { ( ontology:body_of_water ) ( ontology:watercourse ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { { ?g rdf:type ontology:body_of_water } UNION { ?g rdf:type ontology:watercourse } } . resource:Sérignan property:located_next_to_body_of_water ?g } } . FILTER ( ?u > ?f ) }
[]
body of water watercourse type of french administrative division
Q30974 Q207253 Q273297
SYSTEM
Rouen, Mantes-la-Jolie, Ébreuil
Q665411 Q245066 Q842027 Q30974 Q71356 Q1221458 Q236736 Q207253 Q380224 Q675318 Q1221814 Q849165 Q1073039 Q921780 Q1162138 Q1066836 Q391365 Q849065 Q849023 Q769160 Q513962 Q333447 Q323399 Q70491 Q231180 Q191765 Q738523 Q1075733 Q1217913 Q545015 Q662229 Q20892 Q273297 Q284445
(c(Q20667921),P206,c(Q15324)|c(Q355304))
action greater
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action count
action filter_multi_types
action find
entity Q751619
relation P206
type Q15324
type Q355304
[ANSWERS] are located next to greater number of bodies of water and watercourses than Sérignan
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?a . VALUES ( ?a ) { ( ontology:Q15324 ) ( ontology:Q355304 ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { { ?g rdf:type ontology:Q15324 } UNION { ?g rdf:type ontology:Q355304 } } . resource:Q751619 property:P206 ?g } } . FILTER ( ?u > ?f ) }
Leffrinckoucke Chouvigny Rogliano Rouen Île-aux-Moines Saint-Quintin-sur-Sioule Vernon Mantes-la-Jolie Marck Bussières-et-Pruns Menat Saint-Bonnet-de-Rochefort Poses Val-de-Reuil Isches Grand-Fort-Philippe Bray-Dunes Bègues Mazerier Grande-Synthe Oye-Plage Aigueperse Gravelines Larmor-Baden Zuydcoote Anglet Saint-Gal-sur-Sioule La Roche-de-Glun Saint-Agoulin Chaptuzat Jenzat Le Mont-Saint-Michel Ébreuil Pontgibaud
Rouen, Mantes-la-Jolie and Ébreuil are located next to greater number of bodies of water and watercourses than Sérignan
Rouen Mantes-la-Jolie Ébreuil
action greater
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 watercourse
action count
action filter_multi_types
action find
entity Sérignan
relation located next to body of water
type body of water
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?a . VALUES ( ?a ) { ( ontology:body_of_water ) ( ontology:watercourse ) } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { { { ?g rdf:type ontology:body_of_water } UNION { ?g rdf:type ontology:watercourse } } . resource:Sérignan property:located_next_to_body_of_water ?g } } . FILTER ( ?u > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1014771
P206
Q15324 Q355304 Q20667921
USER
And what about L'Étang-Salé?
(c(Q20667921),P206,c(Q15324)|c(Q355304))
action greater
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action count
action filter_multi_types
action find
entity Q1014771
relation P206
type Q15324
type Q355304
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?o WHERE { { ?o rdf:type ontology:Q20667921 . ?u rdf:type ontology:Q15324 . ?o property:P206 ?u } UNION { ?o property:P206 ?u . ?o rdf:type ontology:Q20667921 . ?u rdf:type ontology:Q355304 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { resource:Q1014771 property:P206 ?l . { { ?l rdf:type ontology:Q15324 } UNION { ?l rdf:type ontology:Q355304 } } } } . FILTER ( ?f > ?b ) }
L'Étang-Salé
action greater
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 watercourse
action count
action filter_multi_types
action find
entity L'Étang-Salé
relation located next to body of water
type body of water
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?o WHERE { { ?o rdf:type ontology:type_of_french_administrative_division . ?u rdf:type ontology:body_of_water . ?o property:located_next_to_body_of_water ?u } UNION { ?o property:located_next_to_body_of_water ?u . ?o rdf:type ontology:type_of_french_administrative_division . ?u rdf:type ontology:watercourse } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { resource:L'Étang-Salé property:located_next_to_body_of_water ?l . { { ?l rdf:type ontology:body_of_water } UNION { ?l rdf:type ontology:watercourse } } } } . FILTER ( ?f > ?b ) }
[]
body of water watercourse type of french administrative division
Q30974 Q207253 Q273297
SYSTEM
Rouen, Mantes-la-Jolie, Ébreuil
Q665411 Q245066 Q842027 Q30974 Q71356 Q1221458 Q236736 Q207253 Q380224 Q675318 Q1221814 Q849165 Q1073039 Q921780 Q1162138 Q1066836 Q391365 Q849065 Q849023 Q769160 Q513962 Q333447 Q323399 Q70491 Q231180 Q191765 Q738523 Q1075733 Q1217913 Q545015 Q662229 Q20892 Q273297 Q284445
(c(Q20667921),P206,c(Q15324)|c(Q355304))
action greater
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q355304
action count
action filter_multi_types
action find
entity Q1014771
relation P206
type Q15324
type Q355304
[ANSWERS]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?o WHERE { { ?o rdf:type ontology:Q20667921 . ?u rdf:type ontology:Q15324 . ?o property:P206 ?u } UNION { ?o property:P206 ?u . ?o rdf:type ontology:Q20667921 . ?u rdf:type ontology:Q355304 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { resource:Q1014771 property:P206 ?l . { { ?l rdf:type ontology:Q15324 } UNION { ?l rdf:type ontology:Q355304 } } } } . FILTER ( ?f > ?b ) }
Leffrinckoucke Chouvigny Rogliano Rouen Île-aux-Moines Saint-Quintin-sur-Sioule Vernon Mantes-la-Jolie Marck Bussières-et-Pruns Menat Saint-Bonnet-de-Rochefort Poses Val-de-Reuil Isches Grand-Fort-Philippe Bray-Dunes Bègues Mazerier Grande-Synthe Oye-Plage Aigueperse Gravelines Larmor-Baden Zuydcoote Anglet Saint-Gal-sur-Sioule La Roche-de-Glun Saint-Agoulin Chaptuzat Jenzat Le Mont-Saint-Michel Ébreuil Pontgibaud
Rouen Mantes-la-Jolie Ébreuil
action greater
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 watercourse
action count
action filter_multi_types
action find
entity L'Étang-Salé
relation located next to body of water
type body of water
type watercourse
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?o WHERE { { ?o rdf:type ontology:type_of_french_administrative_division . ?u rdf:type ontology:body_of_water . ?o property:located_next_to_body_of_water ?u } UNION { ?o property:located_next_to_body_of_water ?u . ?o rdf:type ontology:type_of_french_administrative_division . ?u rdf:type ontology:watercourse } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { resource:L'Étang-Salé property:located_next_to_body_of_water ?l . { { ?l rdf:type ontology:body_of_water } UNION { ?l rdf:type ontology:watercourse } } } } . FILTER ( ?f > ?b ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q20667921
USER
How many french administrative divisions do that french administrative division share a border with ?
(c(Q20667921),P47,Q273297)
[{'concept': 'Q20667921'}, 'P47', 'Q273297']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q273297 . ?z rdf:type ontology:Q20667921 }
[{'concept': 'type of french administrative division'}, 'shares border with', 'Ébreuil']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Ébreuil . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q30974
SYSTEM
Did you mean Rouen ?
(c(Q20667921),P47,Q30974) (c(Q20667921),P47,Q207253) (c(Q20667921),P47,Q273297)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q30974'] [{'concept': 'Q20667921'}, 'P47', 'Q207253'] [{'concept': 'Q20667921'}, 'P47', 'Q273297']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q273297 . ?z rdf:type ontology:Q20667921 }
Did you mean Rouen ?
Rouen
[{'concept': 'type of french administrative division'}, 'shares border with', 'Rouen'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Mantes-la-Jolie'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Ébreuil']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Ébreuil . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Ébreuil. Could you tell me the answer for that?
(c(Q20667921),P47,Q273297)
Q273297
[{'concept': 'Q20667921'}, 'P47', 'Q273297']
[{'concept': 'type of french administrative division'}, 'shares border with', 'Ébreuil']
[]
SYSTEM
9
Q272347 Q841501 Q849165 Q245066 Q845353 Q1221458 Q978792 Q849065 Q774325
(c(Q20667921),P47,Q273297)
[ANSWER]
[{'concept': 'Q20667921'}, 'P47', 'Q273297']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q273297 . ?z rdf:type ontology:Q20667921 }
Gannat Vicq Saint-Bonnet-de-Rochefort Chouvigny Sussat Saint-Quintin-sur-Sioule Champs Bègues Lalizolle
9
[{'concept': 'type of french administrative division'}, 'shares border with', 'Ébreuil']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Ébreuil . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q256404 Q1466902
P47
Q20667921
USER
Which french administrative divisions share border with Livers-Cazelles or Chalou-Moulineux ?
OR((c(Q20667921),P47,Q1466902), (c(Q20667921),P47,Q256404))
action filter_type
action union
action find_reverse
entity Q1466902
relation P47
action find_reverse
entity Q256404
relation P47
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1466902'], [{'concept': 'Q20667921'}, 'P47', 'Q256404']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q20667921 . { VALUES ( ?y ) { ( resource:Q256404 ) ( resource:Q1466902 ) } . ?p property:P47 ?y } }
Chalou-Moulineux Livers-Cazelles
action filter_type
action union
action find_reverse
entity Livers-Cazelles
relation shares border with
action find_reverse
entity Chalou-Moulineux
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Livers-Cazelles'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Chalou-Moulineux']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_french_administrative_division . { VALUES ( ?y ) { ( resource:Chalou-Moulineux ) ( resource:Livers-Cazelles ) } . ?p property:shares_border_with ?y } }
[]
type of french administrative division
Q1389917 Q263473 Q248636 Q635125 Q1466159 Q1625704 Q266707 Q276536 Q1390545 Q1390374
SYSTEM
Some of them are Souel, Guillerval, Chalo-Saint-Mars, Cordes-sur-Ciel, Noailles, Milhavet, Monnerville, Congerville-Thionville, Virac, Salles
Q248636 Q1390374 Q263473 Q248737 Q1617814 Q266707 Q1389917 Q635125 Q1625704 Q734114 Q1390545 Q276536 Q1466159
OR((c(Q20667921),P47,Q1466902), (c(Q20667921),P47,Q256404))
action filter_type
action union
action find_reverse
entity Q1466902
relation P47
action find_reverse
entity Q256404
relation P47
type Q20667921
[ANSWERS] share border with Livers-Cazelles or Chalou-Moulineux
{'OR': [[{'concept': 'Q20667921'}, 'P47', 'Q1466902'], [{'concept': 'Q20667921'}, 'P47', 'Q256404']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q20667921 . { VALUES ( ?y ) { ( resource:Q256404 ) ( resource:Q1466902 ) } . ?p property:P47 ?y } }
Chalo-Saint-Mars Salles Guillerval Pussay Villeneuve-sur-Vère Monnerville Souel Cordes-sur-Ciel Milhavet Saint-Marcel-Campes Virac Congerville-Thionville Noailles
Souel, Guillerval, Chalo-Saint-Mars, Cordes-sur-Ciel, Noailles, Milhavet, Monnerville, Congerville-Thionville, Virac and Salles share border with Livers-Cazelles or Chalou-Moulineux
Souel Guillerval Chalo-Saint-Mars Cordes-sur-Ciel Noailles Milhavet Monnerville Congerville-Thionville Virac Salles
action filter_type
action union
action find_reverse
entity Livers-Cazelles
relation shares border with
action find_reverse
entity Chalou-Moulineux
relation shares border with
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'shares border with', 'Livers-Cazelles'], [{'concept': 'type of french administrative division'}, 'shares border with', 'Chalou-Moulineux']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:type_of_french_administrative_division . { VALUES ( ?y ) { ( resource:Chalou-Moulineux ) ( resource:Livers-Cazelles ) } . ?p property:shares_border_with ?y } }
[]