Simple Question (Direct)
Simple Question
Q22754
P190
Q56061
USER
Which administrative territory is sister town of Bitche ?
(Q22754,P190,c(Q56061))
action filter_type
action find
entity Q22754
relation P190
type Q56061
['Q22754', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q22754 property:P190 ?p }
Bitche
action filter_type
action find
entity Bitche
relation sister city
type administrative territorial entity
['Bitche', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Bitche property:sister_city ?p }
[]
administrative territorial entity
Q558593
SYSTEM
Lebach
Q558593
(Q22754,P190,c(Q56061))
action filter_type
action find
entity Q22754
relation P190
type Q56061
[ANSWER] is sister town of Bitche
['Q22754', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q22754 property:P190 ?p }
Lebach
Lebach is sister town of Bitche
Lebach
action filter_type
action find
entity Bitche
relation sister city
type administrative territorial entity
['Bitche', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Bitche property:sister_city ?p }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q558593 Q1114988
P19
Q502895
USER
Does Adolf Kohner have place of birth as that administrative territory ?
(Q1114988,P19,Q558593)
action is_in
entity Q1114988
action find
entity Q558593
relation P19
['Q1114988', 'P19', 'Q558593']
ASK WHERE { resource:Q558593 property:P19 resource:Q1114988 }
Lebach Adolf Kohner
action is_in
entity Adolf Kohner
action find
entity Lebach
relation place of birth
['Adolf Kohner', 'place of birth', 'Lebach']
ASK WHERE { resource:Lebach property:place_of_birth resource:Adolf_Kohner }
[]
common name
SYSTEM
NO
(Q1114988,P19,Q558593)
action is_in
entity Q1114988
action find
entity Q558593
relation P19
[ANSWER]
['Q1114988', 'P19', 'Q558593']
ASK WHERE { resource:Q558593 property:P19 resource:Q1114988 }
No
action is_in
entity Adolf Kohner
action find
entity Lebach
relation place of birth
['Adolf Kohner', 'place of birth', 'Lebach']
ASK WHERE { resource:Lebach property:place_of_birth resource:Adolf_Kohner }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q22754 Q1345726
P17
Q15617994
USER
How many administrative territories are Bitche or Badminton at the 2012 Summer Olympics – Women's singles a part of ?
(Q22754,P17,c(Q15617994)) (Q1345726,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q22754
relation P17
type Q15617994
action filter_type
action find
entity Q1345726
relation P17
type Q15617994
['Q22754', 'P17', {'concept': 'Q15617994'}] ['Q1345726', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s rdf:type ontology:Q15617994 . resource:Q22754 property:P17 ?s } UNION { resource:Q1345726 property:P17 ?s . ?s rdf:type ontology:Q15617994 } }
Bitche Badminton at the 2012 Summer Olympics – Women's singles
action count
action union
action filter_type
action find
entity Bitche
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Badminton at the 2012 Summer Olympics – Women's singles
relation country
type designation for an administrative territorial entity
['Bitche', 'country', {'concept': 'designation for an administrative territorial entity'}] ["Badminton at the 2012 Summer Olympics – Women's singles", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bitche property:country ?s } UNION { resource:Badminton_at_the_2012_Summer_Olympics_–_Women's_singles property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q142 Q145
(Q22754,P17,c(Q15617994)) (Q1345726,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q22754
relation P17
type Q15617994
action filter_type
action find
entity Q1345726
relation P17
type Q15617994
[ANSWER]
['Q22754', 'P17', {'concept': 'Q15617994'}] ['Q1345726', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s rdf:type ontology:Q15617994 . resource:Q22754 property:P17 ?s } UNION { resource:Q1345726 property:P17 ?s . ?s rdf:type ontology:Q15617994 } }
France United Kingdom
2
action count
action union
action filter_type
action find
entity Bitche
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Badminton at the 2012 Summer Olympics – Women's singles
relation country
type designation for an administrative territorial entity
['Bitche', 'country', {'concept': 'designation for an administrative territorial entity'}] ["Badminton at the 2012 Summer Olympics – Women's singles", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bitche property:country ?s } UNION { resource:Badminton_at_the_2012_Summer_Olympics_–_Women's_singles property:country ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1418522 Q22754
P47
Q20667921
USER
Which french administrative divisions are adjacent to Bitche or Courcelles-en-Bassée ?
OR((Q22754,P47,c(Q20667921)), (Q1418522,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q22754
relation P47
action find
entity Q1418522
relation P47
type Q20667921
{'OR': [['Q22754', 'P47', {'concept': 'Q20667921'}], ['Q1418522', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q22754 property:P47 ?e } UNION { resource:Q1418522 property:P47 ?e } } . ?e rdf:type ontology:Q20667921 }
Courcelles-en-Bassée Bitche
action filter_type
action union
action find
entity Bitche
relation shares border with
action find
entity Courcelles-en-Bassée
relation shares border with
type type of french administrative division
{'OR': [['Bitche', 'shares border with', {'concept': 'type of french administrative division'}], ['Courcelles-en-Bassée', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Bitche property:shares_border_with ?e } UNION { resource:Courcelles-en-Bassée property:shares_border_with ?e } } . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q22332 Q22143 Q616889 Q21942 Q22025 Q899583 Q22911 Q22451 Q22394 Q22004
SYSTEM
Some of them are Sturzelbronn, Schorbach, Marolles-sur-Seine, Mouterhouse, Éguelshardt, La Tombe, Hottviller, Haspelschiedt, Lemberg, Roppeviller
Q22025 Q22143 Q22004 Q899583 Q22332 Q2532501 Q1458878 Q22918 Q616889 Q1418672 Q22451 Q22394 Q22911 Q21691 Q258343 Q21942
OR((Q22754,P47,c(Q20667921)), (Q1418522,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q22754
relation P47
action find
entity Q1418522
relation P47
type Q20667921
[ANSWERS] are adjacent to Bitche or Courcelles-en-Bassée
{'OR': [['Q22754', 'P47', {'concept': 'Q20667921'}], ['Q1418522', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q22754 property:P47 ?e } UNION { resource:Q1418522 property:P47 ?e } } . ?e rdf:type ontology:Q20667921 }
Éguelshardt Schorbach Roppeviller La Tombe Sturzelbronn Salins Saint-Germain-Laval Reyersviller Marolles-sur-Seine Châtenay-sur-Seine Haspelschiedt Lemberg Hottviller Hanviller Montigny-Lencoup Mouterhouse
Sturzelbronn, Schorbach, Marolles-sur-Seine, Mouterhouse, Éguelshardt, La Tombe, Hottviller, Haspelschiedt, Lemberg and Roppeviller are adjacent to Bitche or Courcelles-en-Bassée
Sturzelbronn Schorbach Marolles-sur-Seine Mouterhouse Éguelshardt La Tombe Hottviller Haspelschiedt Lemberg Roppeviller
action filter_type
action union
action find
entity Bitche
relation shares border with
action find
entity Courcelles-en-Bassée
relation shares border with
type type of french administrative division
{'OR': [['Bitche', 'shares border with', {'concept': 'type of french administrative division'}], ['Courcelles-en-Bassée', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Bitche property:shares_border_with ?e } UNION { resource:Courcelles-en-Bassée property:shares_border_with ?e } } . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q22332
P47
Q20667921
USER
How many french administrative divisions share border with Sturzelbronn ?
(Q22332,P47,c(Q20667921))
action count
action filter_type
action find
entity Q22332
relation P47
type Q20667921
['Q22332', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Q22332 property:P47 ?a . ?a rdf:type ontology:Q20667921 }
Sturzelbronn
action count
action filter_type
action find
entity Sturzelbronn
relation shares border with
type type of french administrative division
['Sturzelbronn', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Sturzelbronn property:shares_border_with ?a . ?a rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
6
Q22025 Q22336 Q21486 Q22004 Q22754 Q21231
(Q22332,P47,c(Q20667921))
action count
action filter_type
action find
entity Q22332
relation P47
type Q20667921
[ANSWER]
['Q22332', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Q22332 property:P47 ?a . ?a rdf:type ontology:Q20667921 }
Éguelshardt Philippsbourg Obersteinbach Roppeviller Bitche Dambach
6
action count
action filter_type
action find
entity Sturzelbronn
relation shares border with
type type of french administrative division
['Sturzelbronn', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Sturzelbronn property:shares_border_with ?a . ?a rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1046138
Q20667921
USER
And also tell me about Fampoux?
(Q1046138,P47,c(Q20667921))
action count
action filter_type
action find
entity Q1046138
relation P47
type Q20667921
['Q1046138', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:Q20667921 . resource:Q1046138 property:P47 ?p }
Fampoux
action count
action filter_type
action find
entity Fampoux
relation shares border with
type type of french administrative division
['Fampoux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:type_of_french_administrative_division . resource:Fampoux property:shares_border_with ?p }
[]
type of french administrative division
SYSTEM
6
(Q1046138,P47,c(Q20667921))
action count
action filter_type
action find
entity Q1046138
relation P47
type Q20667921
[ANSWER]
['Q1046138', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:Q20667921 . resource:Q1046138 property:P47 ?p }
6
action count
action filter_type
action find
entity Fampoux
relation shares border with
type type of french administrative division
['Fampoux', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:type_of_french_administrative_division . resource:Fampoux property:shares_border_with ?p }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q3249
P1376
Q15617994 Q20667921
USER
How many administrative territories have greater number of french administrative divisions have their first city than Calvados ?
(c(Q20667921),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_type
action find
entity Q3249
relation P1376
type Q15617994
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P1376 ?z . ?l rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?c > ?o ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { resource:Q3249 property:P1376 ?u . ?u rdf:type ontology:Q15617994 } } }
Calvados
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Calvados
relation capital of
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:capital_of ?z . ?l rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?c > ?o ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { resource:Calvados property:capital_of ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity type of french administrative division
SYSTEM
9
Q2998020 Q3259 Q12798 Q12703 Q12569 Q12789 Q12730 Q3278 Q12772
(c(Q20667921),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_type
action find
entity Q3249
relation P1376
type Q15617994
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:P1376 ?z . ?l rdf:type ontology:Q20667921 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?c > ?o ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { resource:Q3249 property:P1376 ?u . ?u rdf:type ontology:Q15617994 } } }
Corse Cantal Vendée Pyrénées-Atlantiques Loire Var Haute-Saône Charente-Maritime Tarn
9
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Calvados
relation capital of
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?l ) AS ?c ) WHERE { ?l property:capital_of ?z . ?l rdf:type ontology:type_of_french_administrative_division . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?c > ?o ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { resource:Calvados property:capital_of ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q466061
P1376
Q15617994 Q20667921
USER
And how about Petén Department?
(c(Q20667921),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_type
action find
entity Q466061
relation P1376
type Q15617994
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:P1376 ?h . ?h rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q20667921 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q466061 property:P1376 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?g ) }
Petén Department
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Petén Department
relation capital of
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:capital_of ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:type_of_french_administrative_division } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Petén_Department property:capital_of ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?g ) }
[]
designation for an administrative territorial entity type of french administrative division
SYSTEM
90
Q12631 Q3368 Q2998020 Q3044731 Q12689 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q12574 Q12798 Q12792 Q12700 Q12703 Q12709 Q12569 Q12642 Q3216 Q3194 Q12804 Q12808 Q3326 Q3286 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q12789 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12730 Q12736 Q12657 Q12652 Q12556 Q12816 Q3353 Q3357 Q3278 Q3184 Q2900529 Q12772 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q12761 Q12765 Q3334 Q12572 Q12576 Q12578 Q12679 Q3113 Q12758 Q12753 Q12751 Q12564
(c(Q20667921),P1376,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action count
action filter_type
action find
entity Q466061
relation P1376
type Q15617994
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:P1376 ?h . ?h rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q20667921 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Q466061 property:P1376 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?v > ?g ) }
Meuse Essonne Corse Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Loiret Vendée Vaucluse Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Morbihan Aveyron Aube Vienne Haute-Vienne Corrèze Cher Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Var Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Haute-Saône Saône-et-Loire Nièvre Moselle Indre-et-Loire Yonne Creuse Dordogne Charente-Maritime Ariège Bezirk Lothringen Tarn Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot Lot-et-Garonne Orne Allier Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
90
action count
action greater
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_type
action find
entity Petén Department
relation capital of
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?v ) WHERE { ?a property:capital_of ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:type_of_french_administrative_division } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { resource:Petén_Department property:capital_of ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?v > ?g ) }
[]