Simple Question (Direct)
Simple Question
Q648667
P47
Q20667921
USER
Which french administrative divisions are adjacent to Mirandol-Bourgnounac ?
(Q648667,P47,c(Q20667921))
action filter_type
action find
entity Q648667
relation P47
type Q20667921
['Q648667', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q648667 property:P47 ?p . ?p rdf:type ontology:Q20667921 }
Mirandol-Bourgnounac
action filter_type
action find
entity Mirandol-Bourgnounac
relation shares border with
type type of french administrative division
['Mirandol-Bourgnounac', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:Mirandol-Bourgnounac property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1141681 Q1471628 Q1465281
SYSTEM
La Salvetat-Peyralès, Pampelonne, Montirat
Q1141681 Q581477 Q1153307 Q1390505 Q1471628 Q1624538 Q1465281 Q1370970 Q1619902
(Q648667,P47,c(Q20667921))
action filter_type
action find
entity Q648667
relation P47
type Q20667921
[ANSWERS] are adjacent to Mirandol-Bourgnounac
['Q648667', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q648667 property:P47 ?p . ?p rdf:type ontology:Q20667921 }
La Salvetat-Peyralès Almayrac Castelmary Trévien Pampelonne Jouqueviel Montirat Crespin Sainte-Gemme
La Salvetat-Peyralès, Pampelonne and Montirat are adjacent to Mirandol-Bourgnounac
La Salvetat-Peyralès Pampelonne Montirat
action filter_type
action find
entity Mirandol-Bourgnounac
relation shares border with
type type of french administrative division
['Mirandol-Bourgnounac', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:Mirandol-Bourgnounac property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q648667
P19
Q502895
USER
Who have location of birth at Mirandol-Bourgnounac ?
(c(Q502895),P19,Q648667)
action filter_type
action find_reverse
entity Q648667
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q648667']
SELECT DISTINCT ?k WHERE { ?k property:P19 resource:Q648667 . ?k rdf:type ontology:Q502895 }
Mirandol-Bourgnounac
action filter_type
action find_reverse
entity Mirandol-Bourgnounac
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Mirandol-Bourgnounac']
SELECT DISTINCT ?k WHERE { ?k property:place_of_birth resource:Mirandol-Bourgnounac . ?k rdf:type ontology:common_name }
[]
common name
Q3426618 Q3103181
SYSTEM
René Mauriès, Georges Mazars
Q3426618 Q3103181
(c(Q502895),P19,Q648667)
action filter_type
action find_reverse
entity Q648667
relation P19
type Q502895
[ANSWERS] have location of birth at Mirandol-Bourgnounac
[{'concept': 'Q502895'}, 'P19', 'Q648667']
SELECT DISTINCT ?k WHERE { ?k property:P19 resource:Q648667 . ?k rdf:type ontology:Q502895 }
René Mauriès Georges Mazars
René Mauriès and Georges Mazars have location of birth at Mirandol-Bourgnounac
René Mauriès Georges Mazars
action filter_type
action find_reverse
entity Mirandol-Bourgnounac
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Mirandol-Bourgnounac']
SELECT DISTINCT ?k WHERE { ?k property:place_of_birth resource:Mirandol-Bourgnounac . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q648667
P17
Q15617994
USER
Which administrative territory is Mirandol-Bourgnounac situated in ?
(Q648667,P17,c(Q15617994))
action filter_type
action find
entity Q648667
relation P17
type Q15617994
['Q648667', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q648667 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Mirandol-Bourgnounac
action filter_type
action find
entity Mirandol-Bourgnounac
relation country
type designation for an administrative territorial entity
['Mirandol-Bourgnounac', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Mirandol-Bourgnounac property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q648667,P17,c(Q15617994))
action filter_type
action find
entity Q648667
relation P17
type Q15617994
Which administrative territory is Mirandol-Bourgnounac situated in
['Q648667', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q648667 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
France
Which administrative territory is Mirandol-Bourgnounac situated in
France
action filter_type
action find
entity Mirandol-Bourgnounac
relation country
type designation for an administrative territorial entity
['Mirandol-Bourgnounac', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Mirandol-Bourgnounac property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q927500
Q15617994
USER
And how about Adams?
(Q927500,P17,c(Q15617994))
action filter_type
action find
entity Q927500
relation P17
type Q15617994
['Q927500', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q927500 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Adams
action filter_type
action find
entity Adams
relation country
type designation for an administrative territorial entity
['Adams', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Adams property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q927500,P17,c(Q15617994))
action filter_type
action find
entity Q927500
relation P17
type Q15617994
[ANSWER]
['Q927500', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q927500 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Adams
relation country
type designation for an administrative territorial entity
['Adams', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Adams property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q555924
P27
Q502895
USER
Is Remo Lederer a citizen of that administrative territory ?
(Q555924,P27,Q30)
action is_in
entity Q555924
action find
entity Q30
relation P27
['Q555924', 'P27', 'Q30']
ASK WHERE { resource:Q30 property:P27 resource:Q555924 }
United States of America Remo Lederer
action is_in
entity Remo Lederer
action find
entity United States of America
relation country of citizenship
['Remo Lederer', 'country of citizenship', 'United States of America']
ASK WHERE { resource:United_States_of_America property:country_of_citizenship resource:Remo_Lederer }
[]
common name
SYSTEM
NO
(Q555924,P27,Q30)
action is_in
entity Q555924
action find
entity Q30
relation P27
[ANSWER]
['Q555924', 'P27', 'Q30']
ASK WHERE { resource:Q30 property:P27 resource:Q555924 }
No
action is_in
entity Remo Lederer
action find
entity United States of America
relation country of citizenship
['Remo Lederer', 'country of citizenship', 'United States of America']
ASK WHERE { resource:United_States_of_America property:country_of_citizenship resource:Remo_Lederer }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1141681 Q1730057 Q142
P17
Q15617994
USER
Is La Salvetat-Peyralès located in Ravila and France ?
(Q1141681,P17,Q1730057) (Q1141681,P17,Q142)
action is_in
entity Q1141681
action intersection
action find_reverse
entity Q1730057
relation P17
action find_reverse
entity Q142
relation P17
['Q1141681', 'P17', 'Q1730057'] ['Q1141681', 'P17', 'Q142']
ASK WHERE { resource:Q1141681 property:P17 resource:Q1730057 . resource:Q1141681 property:P17 resource:Q142 }
La Salvetat-Peyralès Ravila France
action is_in
entity La Salvetat-Peyralès
action intersection
action find_reverse
entity Ravila
relation country
action find_reverse
entity France
relation country
['La Salvetat-Peyralès', 'country', 'Ravila'] ['La Salvetat-Peyralès', 'country', 'France']
ASK WHERE { resource:La_Salvetat-Peyralès property:country resource:Ravila . resource:La_Salvetat-Peyralès property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q1141681,P17,Q1730057) (Q1141681,P17,Q142)
action is_in
entity Q1141681
action intersection
action find_reverse
entity Q1730057
relation P17
action find_reverse
entity Q142
relation P17
[ANSWER]
['Q1141681', 'P17', 'Q1730057'] ['Q1141681', 'P17', 'Q142']
ASK WHERE { resource:Q1141681 property:P17 resource:Q1730057 . resource:Q1141681 property:P17 resource:Q142 }
NO and YES respectively
action is_in
entity La Salvetat-Peyralès
action intersection
action find_reverse
entity Ravila
relation country
action find_reverse
entity France
relation country
['La Salvetat-Peyralès', 'country', 'Ravila'] ['La Salvetat-Peyralès', 'country', 'France']
ASK WHERE { resource:La_Salvetat-Peyralès property:country resource:Ravila . resource:La_Salvetat-Peyralès property:country resource:France }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1141681
P36
Q20667921
USER
Which french administrative division has that one as its administrative centre ?
action filter_type
action find_reverse
entity Q1141681
relation P36
type Q20667921
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q20667921 . ?x property:P36 resource:Q1141681 }
La Salvetat-Peyralès
action filter_type
action find_reverse
entity La Salvetat-Peyralès
relation capital
type type of french administrative division
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:type_of_french_administrative_division . ?x property:capital resource:La_Salvetat-Peyralès }
[]
type of french administrative division
Q1725679
SYSTEM
canton of Salvetat-Peyralès
Q1725679
action filter_type
action find_reverse
entity Q1141681
relation P36
type Q20667921
The [ANSWER] has that one as its administrative centre
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q20667921 . ?x property:P36 resource:Q1141681 }
canton of Salvetat-Peyralès
The canton of Salvetat-Peyralès has that one as its administrative centre
canton of Salvetat-Peyralès
action filter_type
action find_reverse
entity La Salvetat-Peyralès
relation capital
type type of french administrative division
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:type_of_french_administrative_division . ?x property:capital resource:La_Salvetat-Peyralès }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1141681 Q25786
P17
Q15617994
USER
How many administrative territories are La Salvetat-Peyralès or Violin Concerto present in ?
(Q1141681,P17,c(Q15617994)) (Q25786,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1141681
relation P17
type Q15617994
action filter_type
action find
entity Q25786
relation P17
type Q15617994
['Q1141681', 'P17', {'concept': 'Q15617994'}] ['Q25786', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { resource:Q1141681 property:P17 ?m . ?m rdf:type ontology:Q15617994 } UNION { ?m rdf:type ontology:Q15617994 . resource:Q25786 property:P17 ?m } }
La Salvetat-Peyralès Violin Concerto
action count
action union
action filter_type
action find
entity La Salvetat-Peyralès
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Violin Concerto
relation country
type designation for an administrative territorial entity
['La Salvetat-Peyralès', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Violin Concerto', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { resource:La_Salvetat-Peyralès property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Violin_Concerto property:country ?m } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q142 Q29
(Q1141681,P17,c(Q15617994)) (Q25786,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1141681
relation P17
type Q15617994
action filter_type
action find
entity Q25786
relation P17
type Q15617994
[ANSWER]
['Q1141681', 'P17', {'concept': 'Q15617994'}] ['Q25786', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { resource:Q1141681 property:P17 ?m . ?m rdf:type ontology:Q15617994 } UNION { ?m rdf:type ontology:Q15617994 . resource:Q25786 property:P17 ?m } }
France Spain
2
action count
action union
action filter_type
action find
entity La Salvetat-Peyralès
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Violin Concerto
relation country
type designation for an administrative territorial entity
['La Salvetat-Peyralès', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Violin Concerto', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { resource:La_Salvetat-Peyralès property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Violin_Concerto property:country ?m } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1141681
P1376
Q20667921
USER
Which french administrative division has that one as its capital ?
action filter_type
action find
entity Q1141681
relation P1376
type Q20667921
SELECT DISTINCT ?w WHERE { resource:Q1141681 property:P1376 ?w . ?w rdf:type ontology:Q20667921 }
La Salvetat-Peyralès
action filter_type
action find
entity La Salvetat-Peyralès
relation capital of
type type of french administrative division
SELECT DISTINCT ?w WHERE { resource:La_Salvetat-Peyralès property:capital_of ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1725679
SYSTEM
canton of Salvetat-Peyralès
Q1725679
action filter_type
action find
entity Q1141681
relation P1376
type Q20667921
The [ANSWER] has that one as its capital
SELECT DISTINCT ?w WHERE { resource:Q1141681 property:P1376 ?w . ?w rdf:type ontology:Q20667921 }
canton of Salvetat-Peyralès
The canton of Salvetat-Peyralès has that one as its capital
canton of Salvetat-Peyralès
action filter_type
action find
entity La Salvetat-Peyralès
relation capital of
type type of french administrative division
SELECT DISTINCT ?w WHERE { resource:La_Salvetat-Peyralès property:capital_of ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1725679 Q518419
P17
Q15617994
USER
Is that french administrative division a part of Könnern ?
(Q1725679,P17,Q518419)
action is_in
entity Q518419
action find
entity Q1725679
relation P17
['Q1725679', 'P17', 'Q518419']
ASK WHERE { resource:Q1725679 property:P17 resource:Q518419 }
canton of Salvetat-Peyralès Könnern
action is_in
entity Könnern
action find
entity canton of Salvetat-Peyralès
relation country
['canton of Salvetat-Peyralès', 'country', 'Könnern']
ASK WHERE { resource:canton_of_Salvetat-Peyralès property:country resource:Könnern }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1725679,P17,Q518419)
action is_in
entity Q518419
action find
entity Q1725679
relation P17
[ANSWER]
['Q1725679', 'P17', 'Q518419']
ASK WHERE { resource:Q1725679 property:P17 resource:Q518419 }
No
action is_in
entity Könnern
action find
entity canton of Salvetat-Peyralès
relation country
['canton of Salvetat-Peyralès', 'country', 'Könnern']
ASK WHERE { resource:canton_of_Salvetat-Peyralès property:country resource:Könnern }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q35
P17
Q83620
USER
How many thoroughfares are present in France and Denmark ?
(c(Q83620),P17,Q142) (c(Q83620),P17,Q35)
action count
action intersection
action filter_type
action find_reverse
entity Q142
relation P17
type Q83620
action filter_type
action find_reverse
entity Q35
relation P17
type Q83620
[{'concept': 'Q83620'}, 'P17', 'Q142'] [{'concept': 'Q83620'}, 'P17', 'Q35']
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P17 resource:Q142 . ?s rdf:type ontology:Q83620 . ?s property:P17 resource:Q35 . ?s rdf:type ontology:Q83620 }
France Denmark
action count
action intersection
action filter_type
action find_reverse
entity France
relation country
type thoroughfare
action filter_type
action find_reverse
entity Denmark
relation country
type thoroughfare
[{'concept': 'thoroughfare'}, 'country', 'France'] [{'concept': 'thoroughfare'}, 'country', 'Denmark']
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:country resource:France . ?s rdf:type ontology:thoroughfare . ?s property:country resource:Denmark . ?s rdf:type ontology:thoroughfare }
[]
thoroughfare
SYSTEM
2
Q589784 Q25342377
(c(Q83620),P17,Q142) (c(Q83620),P17,Q35)
action count
action intersection
action filter_type
action find_reverse
entity Q142
relation P17
type Q83620
action filter_type
action find_reverse
entity Q35
relation P17
type Q83620
[ANSWER]
[{'concept': 'Q83620'}, 'P17', 'Q142'] [{'concept': 'Q83620'}, 'P17', 'Q35']
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:P17 resource:Q142 . ?s rdf:type ontology:Q83620 . ?s property:P17 resource:Q35 . ?s rdf:type ontology:Q83620 }
Leiðarvísir og borgarskipan Kaptour
2
action count
action intersection
action filter_type
action find_reverse
entity France
relation country
type thoroughfare
action filter_type
action find_reverse
entity Denmark
relation country
type thoroughfare
[{'concept': 'thoroughfare'}, 'country', 'France'] [{'concept': 'thoroughfare'}, 'country', 'Denmark']
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { ?s property:country resource:France . ?s rdf:type ontology:thoroughfare . ?s property:country resource:Denmark . ?s rdf:type ontology:thoroughfare }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q1267889 Q20667921
USER
How many french administrative divisions are located next to atmost 1 bodies of water and waterways ?
(c(Q20667921),P206,c(Q15324)|c(Q1267889))
action count
action atmost
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
value 1
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?m ) WHERE { VALUES ( ?x ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?e rdf:type ?x } GROUP BY ?c } . FILTER ( ?m <= 1 ) }
action count
action atmost
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
value 1
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?m ) WHERE { VALUES ( ?x ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?e rdf:type ?x } GROUP BY ?c } . FILTER ( ?m <= 1 ) }
[]
body of water waterway type of french administrative division
SYSTEM
72
Q224023 Q3769 Q665411 Q1649363 Q467030 Q245066 Q956943 Q842027 Q30974 Q877744 Q71356 Q147606 Q429770 Q1221458 Q236736 Q160199 Q266886 Q207253 Q380224 Q675318 Q1014763 Q652100 Q683550 Q1221814 Q849165 Q453263 Q1073039 Q1326390 Q751619 Q921780 Q14112 Q1162138 Q47045 Q1066836 Q391365 Q926768 Q1649370 Q849065 Q1617681 Q654000 Q249884 Q849023 Q769160 Q1031980 Q513962 Q333447 Q1014814 Q662942 Q382048 Q323399 Q70491 Q231180 Q191765 Q738523 Q1164176 Q1075733 Q1217913 Q26583 Q545015 Q478215 Q1757048 Q1014771 Q1014731 Q44401 Q1001582 Q691092 Q662229 Q752535 Q1165029 Q20892 Q273297 Q284445
(c(Q20667921),P206,c(Q15324)|c(Q1267889))
action count
action atmost
action union
action find_tuple_counts
relation P206
type Q20667921
type Q15324
action find_tuple_counts
relation P206
type Q20667921
type Q1267889
value 1
[ANSWER]
[{'concept': 'Q20667921'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?m ) WHERE { VALUES ( ?x ) { ( ontology:Q15324 ) ( ontology:Q1267889 ) } . ?e rdf:type ?x } GROUP BY ?c } . FILTER ( ?m <= 1 ) }
Penvénan French Guiana Leffrinckoucke Saint-Leu L'Île-Rousse Chouvigny Le Port Rogliano Rouen Le Portel Île-aux-Moines Fort-Mahon-Plage La Possession Saint-Quintin-sur-Sioule Vernon Cherbourg-Octeville Sisco Mantes-la-Jolie Marck Bussières-et-Pruns Trois-Bassins Saint-Philippe Urville-Nacqueville Menat Saint-Bonnet-de-Rochefort Pleumeur-Bodou Poses Petite-Île Sérignan Val-de-Reuil Corsica Isches Saint-Denis Grand-Fort-Philippe Bray-Dunes Tahaa Saint-André Bègues Saint-Louis Monticello Saint-Pierre Mazerier Grande-Synthe Escalles Oye-Plage Aigueperse Les Avirons Sainte-Marie Tardinghen Gravelines Larmor-Baden Zuydcoote Anglet Saint-Gal-sur-Sioule Saint-Léonard 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 Le Mont-Saint-Michel Ébreuil Pontgibaud
72
action count
action atmost
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
value 1
[{'concept': 'type of french administrative division'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?m ) WHERE { VALUES ( ?x ) { ( ontology:body_of_water ) ( ontology:waterway ) } . ?e rdf:type ?x } GROUP BY ?c } . FILTER ( ?m <= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q1048835 Q20667921
USER
Which political territories have approximately 1 french administrative division have their first city ?
(c(Q20667921),P1376,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?i ) WHERE { ?a rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q20667921 . ?x property:P1376 ?a } GROUP BY ?a } . FILTER ( ?i = 1 ) }
action approx
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?i ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:type_of_french_administrative_division . ?x property:capital_of ?a } GROUP BY ?a } . FILTER ( ?i = 1 ) }
[]
political territorial entity type of french administrative division
Q34617 Q2485101 Q778266
SYSTEM
Saint Pierre and Miquelon, County of Chiny, County of Artois
Q1122980 Q2485101 Q34617 Q642314 Q1232887 Q778266
(c(Q20667921),P1376,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[ANSWERS] have their first city
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?i ) WHERE { ?a rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q20667921 . ?x property:P1376 ?a } GROUP BY ?a } . FILTER ( ?i = 1 ) }
Comtat Venaissin County of Chiny Saint Pierre and Miquelon County of Burgundy County of Savoy County of Artois
Saint Pierre and Miquelon, County of Chiny and County of Artois have their first city
Saint Pierre and Miquelon County of Chiny County of Artois
action approx
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?x ) AS ?i ) WHERE { ?a rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:type_of_french_administrative_division . ?x property:capital_of ?a } GROUP BY ?a } . FILTER ( ?i = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1041
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with approximately the same number of political territories as Senegal ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1041
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?w ) WHERE { ?j property:P530 ?n . ?j rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?j } . FILTER ( ?w = ?y ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q1041 property:P530 ?o } } }
Senegal
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Senegal
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?w ) WHERE { ?j property:diplomatic_relation ?n . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?j } . FILTER ( ?w = ?y ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Senegal property:diplomatic_relation ?o } } }
[]
designation for an administrative territorial entity political territorial entity
Q55 Q148 Q17
SYSTEM
Netherlands, People's Republic of China, Japan
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1041
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with approximately the same number of political territories as Senegal
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?w ) WHERE { ?j property:P530 ?n . ?j rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 } GROUP BY ?j } . FILTER ( ?w = ?y ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q1041 property:P530 ?o } } }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
Netherlands, People's Republic of China and Japan have diplomatic relationships with approximately the same number of political territories as Senegal
Netherlands People's Republic of China Japan
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Senegal
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?w ) WHERE { ?j property:diplomatic_relation ?n . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity } GROUP BY ?j } . FILTER ( ?w = ?y ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Senegal property:diplomatic_relation ?o } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q228
P530
Q15617994 Q1048835
USER
And what about Andorra?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q228
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?n = ?g ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q228 property:P530 ?q } } . { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?n ) WHERE { ?t property:P530 ?h . ?h rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?t } }
Andorra
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Andorra
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?n = ?g ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Andorra property:diplomatic_relation ?q } } . { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?n ) WHERE { ?t property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q228
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?n = ?g ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { ?q rdf:type ontology:Q15617994 . resource:Q228 property:P530 ?q } } . { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?n ) WHERE { ?t property:P530 ?h . ?h rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?t } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia Belarus Luxembourg
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Andorra
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?n = ?g ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Andorra property:diplomatic_relation ?q } } . { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?n ) WHERE { ?t property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } }
[]