Simple Question (Direct)
Simple Question
Q4130524
P20
Q56061
USER
Where did the expiration of Toivo Vähä occur ?
(Q4130524,P20,c(Q56061))
action filter_type
action find
entity Q4130524
relation P20
type Q56061
['Q4130524', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q4130524 property:P20 ?j }
Toivo Vähä
action filter_type
action find
entity Toivo Vähä
relation place of death
type administrative territorial entity
['Toivo Vähä', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Toivo_Vähä property:place_of_death ?j }
[]
administrative territorial entity
Q1895
SYSTEM
Petrozavodsk
Q1895
(Q4130524,P20,c(Q56061))
action filter_type
action find
entity Q4130524
relation P20
type Q56061
The expiration of Toivo Vähä occurred from [ANSWER]
['Q4130524', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q4130524 property:P20 ?j }
Petrozavodsk
The expiration of Toivo Vähä occurred from Petrozavodsk
Petrozavodsk
action filter_type
action find
entity Toivo Vähä
relation place of death
type administrative territorial entity
['Toivo Vähä', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Toivo_Vähä property:place_of_death ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1895
P931
Q62447
USER
Which city does that administrative territory serve ?
(c(Q62447),P931,Q1895)
action filter_type
action find_reverse
entity Q1895
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q1895']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q62447 . ?u property:P931 resource:Q1895 }
Petrozavodsk
action filter_type
action find_reverse
entity Petrozavodsk
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Petrozavodsk']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:aerodrome . ?u property:place_served_by_airport resource:Petrozavodsk }
[]
aerodrome
Q2545143
SYSTEM
Petrozavodsk Airport
Q2545143
(c(Q62447),P931,Q1895)
action filter_type
action find_reverse
entity Q1895
relation P931
type Q62447
That administrative territory serves [ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q1895']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q62447 . ?u property:P931 resource:Q1895 }
Petrozavodsk Airport
That administrative territory serves Petrozavodsk Airport
Petrozavodsk Airport
action filter_type
action find_reverse
entity Petrozavodsk
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Petrozavodsk']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:aerodrome . ?u property:place_served_by_airport resource:Petrozavodsk }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1895 Q2000365
P37
Q34770
USER
How many languages are recognized as the official language of Petrozavodsk or North American, Central American and Caribbean Athletic Association ?
(Q1895,P37,c(Q34770)) (Q2000365,P37,c(Q34770))
action count
action union
action filter_type
action find
entity Q1895
relation P37
type Q34770
action filter_type
action find
entity Q2000365
relation P37
type Q34770
['Q1895', 'P37', {'concept': 'Q34770'}] ['Q2000365', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?h property:P37 ?o . VALUES ( ?h ) { ( resource:Q1895 ) ( resource:Q2000365 ) } }
Petrozavodsk North American, Central American and Caribbean Athletic Association
action count
action union
action filter_type
action find
entity Petrozavodsk
relation official language
type language
action filter_type
action find
entity North American, Central American and Caribbean Athletic Association
relation official language
type language
['Petrozavodsk', 'official language', {'concept': 'language'}] ['North American, Central American and Caribbean Athletic Association', 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?h property:official_language ?o . VALUES ( ?h ) { ( resource:Petrozavodsk ) ( resource:North_American,_Central_American_and_Caribbean_Athletic_Association ) } }
[]
language
SYSTEM
2
Q1860 Q1321
(Q1895,P37,c(Q34770)) (Q2000365,P37,c(Q34770))
action count
action union
action filter_type
action find
entity Q1895
relation P37
type Q34770
action filter_type
action find
entity Q2000365
relation P37
type Q34770
[ANSWER]
['Q1895', 'P37', {'concept': 'Q34770'}] ['Q2000365', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?h property:P37 ?o . VALUES ( ?h ) { ( resource:Q1895 ) ( resource:Q2000365 ) } }
English Spanish
2
action count
action union
action filter_type
action find
entity Petrozavodsk
relation official language
type language
action filter_type
action find
entity North American, Central American and Caribbean Athletic Association
relation official language
type language
['Petrozavodsk', 'official language', {'concept': 'language'}] ['North American, Central American and Caribbean Athletic Association', 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) WHERE { ?h property:official_language ?o . VALUES ( ?h ) { ( resource:Petrozavodsk ) ( resource:North_American,_Central_American_and_Caribbean_Athletic_Association ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q486568 Q1895
P190
Q20667921
USER
Which french administrative divisions are sister town of Petrozavodsk or Eisenberg ?
OR((c(Q20667921),P190,Q1895), (c(Q20667921),P190,Q486568))
action filter_type
action union
action find_reverse
entity Q1895
relation P190
action find_reverse
entity Q486568
relation P190
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P190', 'Q1895'], [{'concept': 'Q20667921'}, 'P190', 'Q486568']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P190 resource:Q486568 } UNION { ?v property:P190 resource:Q1895 } } . ?v rdf:type ontology:Q20667921 }
Eisenberg Petrozavodsk
action filter_type
action union
action find_reverse
entity Petrozavodsk
relation sister city
action find_reverse
entity Eisenberg
relation sister city
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'sister city', 'Petrozavodsk'], [{'concept': 'type of french administrative division'}, 'sister city', 'Eisenberg']]}
SELECT DISTINCT ?v WHERE { { { ?v property:sister_city resource:Eisenberg } UNION { ?v property:sister_city resource:Petrozavodsk } } . ?v rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q82185 Q167152
SYSTEM
La Rochelle, Soissons
Q82185 Q167152
OR((c(Q20667921),P190,Q1895), (c(Q20667921),P190,Q486568))
action filter_type
action union
action find_reverse
entity Q1895
relation P190
action find_reverse
entity Q486568
relation P190
type Q20667921
[ANSWERS] are sister town of Petrozavodsk or Eisenberg
{'OR': [[{'concept': 'Q20667921'}, 'P190', 'Q1895'], [{'concept': 'Q20667921'}, 'P190', 'Q486568']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P190 resource:Q486568 } UNION { ?v property:P190 resource:Q1895 } } . ?v rdf:type ontology:Q20667921 }
La Rochelle Soissons
La Rochelle and Soissons are sister town of Petrozavodsk or Eisenberg
La Rochelle Soissons
action filter_type
action union
action find_reverse
entity Petrozavodsk
relation sister city
action find_reverse
entity Eisenberg
relation sister city
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'sister city', 'Petrozavodsk'], [{'concept': 'type of french administrative division'}, 'sister city', 'Eisenberg']]}
SELECT DISTINCT ?v WHERE { { { ?v property:sister_city resource:Eisenberg } UNION { ?v property:sister_city resource:Petrozavodsk } } . ?v rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1061846
P608
Q62447 Q2424752 Q15056995
USER
How many aerodromes were greater number of products or aircraft models exhibited at than Ngurah Rai International Airport ?
(c(Q2424752)|c(Q15056995),P608,c(Q62447))
action count
action greater
action union
action find_reverse_tuple_counts
relation P608
type Q62447
type Q2424752
action find_reverse_tuple_counts
relation P608
type Q62447
type Q15056995
action count
action filter_multi_types
action find_reverse
entity Q1061846
relation P608
type Q2424752
type Q15056995
[[{'concept': 'Q2424752'}, {'concept': 'Q15056995'}], 'P608', {'concept': 'Q62447'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) ?p WHERE { { ?x property:P608 ?p . ?x rdf:type ontology:Q2424752 . ?p rdf:type ontology:Q62447 } UNION { ?x property:P608 ?p . ?p rdf:type ontology:Q62447 . ?x rdf:type ontology:Q15056995 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q15056995 ) ( ontology:Q2424752 ) } } . ?o property:P608 resource:Q1061846 } } . FILTER ( ?d > ?f ) }
Ngurah Rai International Airport
action count
action greater
action union
action find_reverse_tuple_counts
relation exhibition history
type aerodrome
type product
action find_reverse_tuple_counts
relation exhibition history
type aerodrome
type aircraft model
action count
action filter_multi_types
action find_reverse
entity Ngurah Rai International Airport
relation exhibition history
type product
type aircraft model
[[{'concept': 'product'}, {'concept': 'aircraft model'}], 'exhibition history', {'concept': 'aerodrome'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) ?p WHERE { { ?x property:exhibition_history ?p . ?x rdf:type ontology:product . ?p rdf:type ontology:aerodrome } UNION { ?x property:exhibition_history ?p . ?p rdf:type ontology:aerodrome . ?x rdf:type ontology:aircraft_model } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:aircraft_model ) ( ontology:product ) } } . ?o property:exhibition_history resource:Ngurah_Rai_International_Airport } } . FILTER ( ?d > ?f ) }
[]
aerodrome product aircraft model
SYSTEM
14
Q577946 Q650056 Q3565266 Q3497392 Q12694513 Q919059 Q3274666 Q652649 Q2875950 Q7306992 Q1032127 Q1999664 Q5138107 Q1268666
(c(Q2424752)|c(Q15056995),P608,c(Q62447))
action count
action greater
action union
action find_reverse_tuple_counts
relation P608
type Q62447
type Q2424752
action find_reverse_tuple_counts
relation P608
type Q62447
type Q15056995
action count
action filter_multi_types
action find_reverse
entity Q1061846
relation P608
type Q2424752
type Q15056995
[ANSWER]
[[{'concept': 'Q2424752'}, {'concept': 'Q15056995'}], 'P608', {'concept': 'Q62447'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) ?p WHERE { { ?x property:P608 ?p . ?x rdf:type ontology:Q2424752 . ?p rdf:type ontology:Q62447 } UNION { ?x property:P608 ?p . ?p rdf:type ontology:Q62447 . ?x rdf:type ontology:Q15056995 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q15056995 ) ( ontology:Q2424752 ) } } . ?o property:P608 resource:Q1061846 } } . FILTER ( ?d > ?f ) }
Kirtland Air Force Base Langley Field Middleton Field Vance Air Force Base Prachuap Khiri Khan Airport Loei Airport Canadian Bushplane Heritage Centre McConnell Air Force Base Summerside Airport Reese Air Force Base CFB Greenwood Tinker Air Force Base Coast Guard Air Station Elizabeth City Dyess Air Force Base
14
action count
action greater
action union
action find_reverse_tuple_counts
relation exhibition history
type aerodrome
type product
action find_reverse_tuple_counts
relation exhibition history
type aerodrome
type aircraft model
action count
action filter_multi_types
action find_reverse
entity Ngurah Rai International Airport
relation exhibition history
type product
type aircraft model
[[{'concept': 'product'}, {'concept': 'aircraft model'}], 'exhibition history', {'concept': 'aerodrome'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) ?p WHERE { { ?x property:exhibition_history ?p . ?x rdf:type ontology:product . ?p rdf:type ontology:aerodrome } UNION { ?x property:exhibition_history ?p . ?p rdf:type ontology:aerodrome . ?x rdf:type ontology:aircraft_model } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) WHERE { { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:aircraft_model ) ( ontology:product ) } } . ?o property:exhibition_history resource:Ngurah_Rai_International_Airport } } . FILTER ( ?d > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q17440
P608
Q62447 Q2424752 Q15056995
USER
And also tell me about Albury Airport?
(c(Q2424752)|c(Q15056995),P608,c(Q62447))
action count
action greater
action union
action find_reverse_tuple_counts
relation P608
type Q62447
type Q2424752
action find_reverse_tuple_counts
relation P608
type Q62447
type Q15056995
action count
action filter_multi_types
action find_reverse
entity Q17440
relation P608
type Q2424752
type Q15056995
[[{'concept': 'Q2424752'}, {'concept': 'Q15056995'}], 'P608', {'concept': 'Q62447'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:Q15056995 ) ( ontology:Q2424752 ) } . ?t rdf:type ?i } GROUP BY ?x } . FILTER ( ?v > ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:P608 resource:Q17440 . { { ?y rdf:type ontology:Q2424752 } UNION { ?y rdf:type ontology:Q15056995 } } } } }
Albury Airport
action count
action greater
action union
action find_reverse_tuple_counts
relation exhibition history
type aerodrome
type product
action find_reverse_tuple_counts
relation exhibition history
type aerodrome
type aircraft model
action count
action filter_multi_types
action find_reverse
entity Albury Airport
relation exhibition history
type product
type aircraft model
[[{'concept': 'product'}, {'concept': 'aircraft model'}], 'exhibition history', {'concept': 'aerodrome'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:aircraft_model ) ( ontology:product ) } . ?t rdf:type ?i } GROUP BY ?x } . FILTER ( ?v > ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:exhibition_history resource:Albury_Airport . { { ?y rdf:type ontology:product } UNION { ?y rdf:type ontology:aircraft_model } } } } }
[]
aerodrome product aircraft model
SYSTEM
14
Q577946 Q650056 Q3565266 Q3497392 Q12694513 Q919059 Q3274666 Q652649 Q2875950 Q7306992 Q1032127 Q1999664 Q5138107 Q1268666
(c(Q2424752)|c(Q15056995),P608,c(Q62447))
action count
action greater
action union
action find_reverse_tuple_counts
relation P608
type Q62447
type Q2424752
action find_reverse_tuple_counts
relation P608
type Q62447
type Q15056995
action count
action filter_multi_types
action find_reverse
entity Q17440
relation P608
type Q2424752
type Q15056995
[ANSWER]
[[{'concept': 'Q2424752'}, {'concept': 'Q15056995'}], 'P608', {'concept': 'Q62447'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:Q15056995 ) ( ontology:Q2424752 ) } . ?t rdf:type ?i } GROUP BY ?x } . FILTER ( ?v > ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:P608 resource:Q17440 . { { ?y rdf:type ontology:Q2424752 } UNION { ?y rdf:type ontology:Q15056995 } } } } }
Kirtland Air Force Base Langley Field Middleton Field Vance Air Force Base Prachuap Khiri Khan Airport Loei Airport Canadian Bushplane Heritage Centre McConnell Air Force Base Summerside Airport Reese Air Force Base CFB Greenwood Tinker Air Force Base Coast Guard Air Station Elizabeth City Dyess Air Force Base
14
action count
action greater
action union
action find_reverse_tuple_counts
relation exhibition history
type aerodrome
type product
action find_reverse_tuple_counts
relation exhibition history
type aerodrome
type aircraft model
action count
action filter_multi_types
action find_reverse
entity Albury Airport
relation exhibition history
type product
type aircraft model
[[{'concept': 'product'}, {'concept': 'aircraft model'}], 'exhibition history', {'concept': 'aerodrome'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:aircraft_model ) ( ontology:product ) } . ?t rdf:type ?i } GROUP BY ?x } . FILTER ( ?v > ?p ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { ?y property:exhibition_history resource:Albury_Airport . { { ?y rdf:type ontology:product } UNION { ?y rdf:type ontology:aircraft_model } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q82185
P47
Q20667921
USER
How many french administrative divisions are bordered by La Rochelle ?
(Q82185,P47,c(Q20667921))
action count
action filter_type
action find
entity Q82185
relation P47
type Q20667921
['Q82185', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ontology:Q20667921 . resource:Q82185 property:P47 ?x }
La Rochelle
action count
action filter_type
action find
entity La Rochelle
relation shares border with
type type of french administrative division
['La Rochelle', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ontology:type_of_french_administrative_division . resource:La_Rochelle property:shares_border_with ?x }
[]
type of french administrative division
SYSTEM
6
Q736499 Q1354628 Q1062851 Q1151169 Q72240 Q181520
(Q82185,P47,c(Q20667921))
action count
action filter_type
action find
entity Q82185
relation P47
type Q20667921
[ANSWER]
['Q82185', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ontology:Q20667921 . resource:Q82185 property:P47 ?x }
Rivedoux-Plage Puilboreau L'Houmeau Lagord Aytré Périgny
6
action count
action filter_type
action find
entity La Rochelle
relation shares border with
type type of french administrative division
['La Rochelle', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?x rdf:type ontology:type_of_french_administrative_division . resource:La_Rochelle property:shares_border_with ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q1164161
P47
Q20667921
USER
And also tell me about Theuville-aux-Maillots?
(Q1164161,P47,c(Q20667921))
action count
action filter_type
action find
entity Q1164161
relation P47
type Q20667921
['Q1164161', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Q1164161 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Theuville-aux-Maillots
action count
action filter_type
action find
entity Theuville-aux-Maillots
relation shares border with
type type of french administrative division
['Theuville-aux-Maillots', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Theuville-aux-Maillots property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
8
Q1113009 Q1113543 Q961535 Q628033 Q1114364 Q1164156 Q1112995 Q1167618
(Q1164161,P47,c(Q20667921))
action count
action filter_type
action find
entity Q1164161
relation P47
type Q20667921
[ANSWER]
['Q1164161', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Q1164161 property:P47 ?b . ?b rdf:type ontology:Q20667921 }
Criquetot-le-Mauconduit Bertreville Gerponville Valmont, Seine-Maritime Sassetot-le-Mauconduit Thérouldeville Angerville-la-Martel Ouainville
8
action count
action filter_type
action find
entity Theuville-aux-Maillots
relation shares border with
type type of french administrative division
['Theuville-aux-Maillots', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { resource:Theuville-aux-Maillots property:shares_border_with ?b . ?b rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q22429
Q20667921
USER
And how about Volmerange-les-Mines?
(Q22429,P47,c(Q20667921))
action count
action filter_type
action find
entity Q22429
relation P47
type Q20667921
['Q22429', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p rdf:type ontology:Q20667921 . resource:Q22429 property:P47 ?p }
Volmerange-les-Mines
action count
action filter_type
action find
entity Volmerange-les-Mines
relation shares border with
type type of french administrative division
['Volmerange-les-Mines', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p rdf:type ontology:type_of_french_administrative_division . resource:Volmerange-les-Mines property:shares_border_with ?p }
[]
type of french administrative division
SYSTEM
5
(Q22429,P47,c(Q20667921))
action count
action filter_type
action find
entity Q22429
relation P47
type Q20667921
[ANSWER]
['Q22429', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p rdf:type ontology:Q20667921 . resource:Q22429 property:P47 ?p }
5
action count
action filter_type
action find
entity Volmerange-les-Mines
relation shares border with
type type of french administrative division
['Volmerange-les-Mines', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p rdf:type ontology:type_of_french_administrative_division . resource:Volmerange-les-Mines property:shares_border_with ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q20667921 Q515
USER
How many cities are the capital of atleast 3 french administrative divisions ?
(c(Q515),P1376,c(Q20667921))
action count
action atleast
action find_tuple_counts
relation P1376
type Q515
type Q20667921
value 3
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { FILTER ( ?q >= 3 ) . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?q ) WHERE { ?t property:P1376 ?b . ?t rdf:type ontology:Q515 . ?b rdf:type ontology:Q20667921 } GROUP BY ?t } }
action count
action atleast
action find_tuple_counts
relation capital of
type city
type type of french administrative division
value 3
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { FILTER ( ?q >= 3 ) . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?q ) WHERE { ?t property:capital_of ?b . ?t rdf:type ontology:city . ?b rdf:type ontology:type_of_french_administrative_division } GROUP BY ?t } }
[]
type of french administrative division city
SYSTEM
5
Q23482 Q6602 Q6582 Q456 Q7003
(c(Q515),P1376,c(Q20667921))
action count
action atleast
action find_tuple_counts
relation P1376
type Q515
type Q20667921
value 3
[ANSWER]
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { FILTER ( ?q >= 3 ) . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?q ) WHERE { ?t property:P1376 ?b . ?t rdf:type ontology:Q515 . ?b rdf:type ontology:Q20667921 } GROUP BY ?t } }
Marseille Strasbourg Carcassonne Lyon Dijon
5
action count
action atleast
action find_tuple_counts
relation capital of
type city
type type of french administrative division
value 3
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { FILTER ( ?q >= 3 ) . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?q ) WHERE { ?t property:capital_of ?b . ?t rdf:type ontology:city . ?b rdf:type ontology:type_of_french_administrative_division } GROUP BY ?t } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82185
P6
Q502895
USER
Who is the head of the government of La Rochelle ?
(Q82185,P6,c(Q502895))
action filter_type
action find
entity Q82185
relation P6
type Q502895
['Q82185', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q82185 property:P6 ?a . ?a rdf:type ontology:Q502895 }
La Rochelle
action filter_type
action find
entity La Rochelle
relation head of government
type common name
['La Rochelle', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:La_Rochelle property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
common name
Q2918769
SYSTEM
Maxime Bono
Q2918769
(Q82185,P6,c(Q502895))
action filter_type
action find
entity Q82185
relation P6
type Q502895
The head of the government of La Rochelle is the [ANSWER]
['Q82185', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q82185 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Maxime Bono
The head of the government of La Rochelle is the Maxime Bono
Maxime Bono
action filter_type
action find
entity La Rochelle
relation head of government
type common name
['La Rochelle', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:La_Rochelle property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82185
P17
Q15617994
USER
Which administrative territory is La Rochelle a part of ?
(Q82185,P17,c(Q15617994))
action filter_type
action find
entity Q82185
relation P17
type Q15617994
['Q82185', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q82185 property:P17 ?w }
La Rochelle
action filter_type
action find
entity La Rochelle
relation country
type designation for an administrative territorial entity
['La Rochelle', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:La_Rochelle property:country ?w }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q82185,P17,c(Q15617994))
action filter_type
action find
entity Q82185
relation P17
type Q15617994
[ANSWER] is La Rochelle a part of
['Q82185', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q82185 property:P17 ?w }
France
France is La Rochelle a part of
France
action filter_type
action find
entity La Rochelle
relation country
type designation for an administrative territorial entity
['La Rochelle', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:La_Rochelle property:country ?w }
[]