Simple Question (Direct)
Simple Question
Q5338379
P19
Q13220204
USER
Which administrative country subdivision was Edison Giménez born at ?
(Q5338379,P19,c(Q13220204))
action filter_type
action find
entity Q5338379
relation P19
type Q13220204
['Q5338379', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?l WHERE { resource:Q5338379 property:P19 ?l . ?l rdf:type ontology:Q13220204 }
Edison Giménez
action filter_type
action find
entity Edison Giménez
relation place of birth
type second-level administrative country subdivision
['Edison Giménez', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?l WHERE { resource:Edison_Giménez property:place_of_birth ?l . ?l rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q2933
SYSTEM
Asunción
Q2933
(Q5338379,P19,c(Q13220204))
action filter_type
action find
entity Q5338379
relation P19
type Q13220204
Edison Giménez was born in [ANSWER]
['Q5338379', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?l WHERE { resource:Q5338379 property:P19 ?l . ?l rdf:type ontology:Q13220204 }
Asunción
Edison Giménez was born in Asunción
Asunción
action filter_type
action find
entity Edison Giménez
relation place of birth
type second-level administrative country subdivision
['Edison Giménez', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?l WHERE { resource:Edison_Giménez property:place_of_birth ?l . ?l rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2933
P740
Q43229
USER
Which organization was formed at that administrative country subdivision ?
(c(Q43229),P740,Q2933)
action filter_type
action find_reverse
entity Q2933
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q2933']
SELECT DISTINCT ?p WHERE { ?p property:P740 resource:Q2933 . ?p rdf:type ontology:Q43229 }
Asunción
action filter_type
action find_reverse
entity Asunción
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Asunción']
SELECT DISTINCT ?p WHERE { ?p property:location_of_formation resource:Asunción . ?p rdf:type ontology:organization }
[]
organization
Q17072067
SYSTEM
Grupo Cartes
Q17072067
(c(Q43229),P740,Q2933)
action filter_type
action find_reverse
entity Q2933
relation P740
type Q43229
[ANSWER] was formed at that administrative country subdivision
[{'concept': 'Q43229'}, 'P740', 'Q2933']
SELECT DISTINCT ?p WHERE { ?p property:P740 resource:Q2933 . ?p rdf:type ontology:Q43229 }
Grupo Cartes
Grupo Cartes was formed at that administrative country subdivision
Grupo Cartes
action filter_type
action find_reverse
entity Asunción
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Asunción']
SELECT DISTINCT ?p WHERE { ?p property:location_of_formation resource:Asunción . ?p rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P137
Q43229 Q483110
USER
How many stadia can be described as facility operator of approximately 1 organization ?
(c(Q483110),P137,c(Q43229))
action count
action approx
action find_tuple_counts
relation P137
type Q483110
type Q43229
value 1
[{'concept': 'Q483110'}, 'P137', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?g ) WHERE { ?z property:P137 ?f . ?z rdf:type ontology:Q483110 . ?f rdf:type ontology:Q43229 } GROUP BY ?z } }
action count
action approx
action find_tuple_counts
relation operator
type stadium
type organization
value 1
[{'concept': 'stadium'}, 'operator', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?g ) WHERE { ?z property:operator ?f . ?z rdf:type ontology:stadium . ?f rdf:type ontology:organization } GROUP BY ?z } }
[]
organization stadium
SYSTEM
8
Q62149 Q320454 Q673373 Q771800 Q1142393 Q77118 Q7571588 Q49136
(c(Q483110),P137,c(Q43229))
action count
action approx
action find_tuple_counts
relation P137
type Q483110
type Q43229
value 1
[ANSWER]
[{'concept': 'Q483110'}, 'P137', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?g ) WHERE { ?z property:P137 ?f . ?z rdf:type ontology:Q483110 . ?f rdf:type ontology:Q43229 } GROUP BY ?z } }
Juventus Stadium Azteca Stadium Stadio di Corsi Sebastopoli Estadio Tigres De la UANL Crystal Palace National Sports Centre Don Valley Stadium Santander Stadium Fenway Park
8
action count
action approx
action find_tuple_counts
relation operator
type stadium
type organization
value 1
[{'concept': 'stadium'}, 'operator', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { FILTER ( ?g = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?g ) WHERE { ?z property:operator ?f . ?z rdf:type ontology:stadium . ?f rdf:type ontology:organization } GROUP BY ?z } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2933
P190
Q486972 Q1048835
USER
How many human settlements or political territories are partner town of Asunción ?
(c(Q486972),P190,Q2933) (c(Q1048835),P190,Q2933)
action count
action union
action filter_type
action find_reverse
entity Q2933
relation P190
type Q486972
action filter_type
action find_reverse
entity Q2933
relation P190
type Q1048835
[{'concept': 'Q486972'}, 'P190', 'Q2933'] [{'concept': 'Q1048835'}, 'P190', 'Q2933']
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { ?a property:P190 resource:Q2933 . ?a rdf:type ontology:Q1048835 } UNION { ?a property:P190 resource:Q2933 . ?a rdf:type ontology:Q486972 } }
Asunción
action count
action union
action filter_type
action find_reverse
entity Asunción
relation sister city
type human settlement
action filter_type
action find_reverse
entity Asunción
relation sister city
type political territorial entity
[{'concept': 'human settlement'}, 'sister city', 'Asunción'] [{'concept': 'political territorial entity'}, 'sister city', 'Asunción']
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { ?a property:sister_city resource:Asunción . ?a rdf:type ontology:political_territorial_entity } UNION { ?a property:sister_city resource:Asunción . ?a rdf:type ontology:human_settlement } }
[]
human settlement political territorial entity
SYSTEM
2
Q125293 Q1614754
(c(Q486972),P190,Q2933) (c(Q1048835),P190,Q2933)
action count
action union
action filter_type
action find_reverse
entity Q2933
relation P190
type Q486972
action filter_type
action find_reverse
entity Q2933
relation P190
type Q1048835
[ANSWER]
[{'concept': 'Q486972'}, 'P190', 'Q2933'] [{'concept': 'Q1048835'}, 'P190', 'Q2933']
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { ?a property:P190 resource:Q2933 . ?a rdf:type ontology:Q1048835 } UNION { ?a property:P190 resource:Q2933 . ?a rdf:type ontology:Q486972 } }
Puebla City Medina de Pomar
2
action count
action union
action filter_type
action find_reverse
entity Asunción
relation sister city
type human settlement
action filter_type
action find_reverse
entity Asunción
relation sister city
type political territorial entity
[{'concept': 'human settlement'}, 'sister city', 'Asunción'] [{'concept': 'political territorial entity'}, 'sister city', 'Asunción']
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { ?a property:sister_city resource:Asunción . ?a rdf:type ontology:political_territorial_entity } UNION { ?a property:sister_city resource:Asunción . ?a rdf:type ontology:human_settlement } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2933
P206
Q355304
USER
Which watercourse is situated nearby Asunción ?
(Q2933,P206,c(Q355304))
action filter_type
action find
entity Q2933
relation P206
type Q355304
['Q2933', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?u WHERE { resource:Q2933 property:P206 ?u . ?u rdf:type ontology:Q355304 }
Asunción
action filter_type
action find
entity Asunción
relation located next to body of water
type watercourse
['Asunción', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?u WHERE { resource:Asunción property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse }
[]
watercourse
Q179396
SYSTEM
Paraguay River
Q179396
(Q2933,P206,c(Q355304))
action filter_type
action find
entity Q2933
relation P206
type Q355304
[ANSWER] is situated nearby Asunción
['Q2933', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?u WHERE { resource:Q2933 property:P206 ?u . ?u rdf:type ontology:Q355304 }
Paraguay River
Paraguay River is situated nearby Asunción
Paraguay River
action filter_type
action find
entity Asunción
relation located next to body of water
type watercourse
['Asunción', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?u WHERE { resource:Asunción property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3593399
Q355304
USER
And how about île de Platais?
(Q3593399,P206,c(Q355304))
action filter_type
action find
entity Q3593399
relation P206
type Q355304
['Q3593399', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?p WHERE { resource:Q3593399 property:P206 ?p . ?p rdf:type ontology:Q355304 }
île de Platais
action filter_type
action find
entity île de Platais
relation located next to body of water
type watercourse
['île de Platais', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?p WHERE { resource:île_de_Platais property:located_next_to_body_of_water ?p . ?p rdf:type ontology:watercourse }
[]
watercourse
Q1471
SYSTEM
Seine
Q1471
(Q3593399,P206,c(Q355304))
action filter_type
action find
entity Q3593399
relation P206
type Q355304
[ANSWER]
['Q3593399', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?p WHERE { resource:Q3593399 property:P206 ?p . ?p rdf:type ontology:Q355304 }
Seine
Seine
action filter_type
action find
entity île de Platais
relation located next to body of water
type watercourse
['île de Platais', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?p WHERE { resource:île_de_Platais property:located_next_to_body_of_water ?p . ?p rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6138494 Q2933
P190 P20
Q56061
USER
Which administrative territories are sister towns of Asunción or did the expiration of James M. Masters, Sr. occur ?
OR((Q2933,P190,c(Q56061)), (Q6138494,P20,c(Q56061)))
action filter_type
action union
action find
entity Q2933
relation P190
action find
entity Q6138494
relation P20
type Q56061
{'OR': [['Q2933', 'P190', {'concept': 'Q56061'}], ['Q6138494', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . { { resource:Q2933 property:P190 ?l } UNION { resource:Q6138494 property:P20 ?l } } }
James M. Masters, Sr. Asunción
action filter_type
action union
action find
entity Asunción
relation sister city
action find
entity James M. Masters, Sr.
relation place of death
type administrative territorial entity
{'OR': [['Asunción', 'sister city', {'concept': 'administrative territorial entity'}], ['James M. Masters, Sr.', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . { { resource:Asunción property:sister_city ?l } UNION { resource:James_M._Masters,_Sr. property:place_of_death ?l } } }
[]
administrative territorial entity
Q4361 Q2807 Q518431 Q174 Q44206 Q44059 Q3561 Q34820 Q61 Q214173
SYSTEM
Some of them are Curitiba, Madrid, Chimbote, São Paulo, Resistencia, La Plata, Algiers, Santo Domingo, Washington, D.C., Trujillo
Q214173 Q174 Q518431 Q34820 Q3561 Q2807 Q1867 Q52535 Q4361 Q44206 Q44059 Q61
OR((Q2933,P190,c(Q56061)), (Q6138494,P20,c(Q56061)))
action filter_type
action union
action find
entity Q2933
relation P190
action find
entity Q6138494
relation P20
type Q56061
[ANSWERS] are sister towns of Asunción or did the expiration of James M. Masters, Sr. occur
{'OR': [['Q2933', 'P190', {'concept': 'Q56061'}], ['Q6138494', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . { { resource:Q2933 property:P190 ?l } UNION { resource:Q6138494 property:P20 ?l } } }
Trujillo São Paulo Chimbote Santo Domingo Algiers Madrid Taipei Rosario Curitiba Resistencia La Plata Washington, D.C.
Curitiba, Madrid, Chimbote, São Paulo, Resistencia, La Plata, Algiers, Santo Domingo, Washington, D.C. and Trujillo are sister towns of Asunción or did the expiration of James M. Masters, Sr. occur
Curitiba Madrid Chimbote São Paulo Resistencia La Plata Algiers Santo Domingo Washington, D.C. Trujillo
action filter_type
action union
action find
entity Asunción
relation sister city
action find
entity James M. Masters, Sr.
relation place of death
type administrative territorial entity
{'OR': [['Asunción', 'sister city', {'concept': 'administrative territorial entity'}], ['James M. Masters, Sr.', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . { { resource:Asunción property:sister_city ?l } UNION { resource:James_M._Masters,_Sr. property:place_of_death ?l } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1376
Q161243 Q15617994
USER
How many dependent territories or administrative territories have that administrative territory have their center of administration ?
(Q3561,P1376,c(Q161243)) (Q3561,P1376,c(Q15617994)) (Q4361,P1376,c(Q161243)) (Q4361,P1376,c(Q15617994)) (Q2807,P1376,c(Q161243)) (Q2807,P1376,c(Q15617994)) (Q518431,P1376,c(Q161243)) (Q518431,P1376,c(Q15617994)) (Q174,P1376,c(Q161243)) (Q174,P1376,c(Q15617994)) (Q44206,P1376,c(Q161243)) (Q44206,P1376,c(Q15617994)) (Q44059,P1376,c(Q161243)) (Q44059,P1376,c(Q15617994)) (Q3561,P1376,c(Q161243)) (Q3561,P1376,c(Q15617994)) (Q34820,P1376,c(Q161243)) (Q34820,P1376,c(Q15617994)) (Q61,P1376,c(Q161243)) (Q61,P1376,c(Q15617994)) (Q214173,P1376,c(Q161243)) (Q214173,P1376,c(Q15617994))
['Q3561', 'P1376', {'concept': 'Q161243'}] ['Q3561', 'P1376', {'concept': 'Q15617994'}] ['Q4361', 'P1376', {'concept': 'Q161243'}] ['Q4361', 'P1376', {'concept': 'Q15617994'}] ['Q2807', 'P1376', {'concept': 'Q161243'}] ['Q2807', 'P1376', {'concept': 'Q15617994'}] ['Q518431', 'P1376', {'concept': 'Q161243'}] ['Q518431', 'P1376', {'concept': 'Q15617994'}] ['Q174', 'P1376', {'concept': 'Q161243'}] ['Q174', 'P1376', {'concept': 'Q15617994'}] ['Q44206', 'P1376', {'concept': 'Q161243'}] ['Q44206', 'P1376', {'concept': 'Q15617994'}] ['Q44059', 'P1376', {'concept': 'Q161243'}] ['Q44059', 'P1376', {'concept': 'Q15617994'}] ['Q3561', 'P1376', {'concept': 'Q161243'}] ['Q3561', 'P1376', {'concept': 'Q15617994'}] ['Q34820', 'P1376', {'concept': 'Q161243'}] ['Q34820', 'P1376', {'concept': 'Q15617994'}] ['Q61', 'P1376', {'concept': 'Q161243'}] ['Q61', 'P1376', {'concept': 'Q15617994'}] ['Q214173', 'P1376', {'concept': 'Q161243'}] ['Q214173', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1414527 property:P1376 ?z } UNION { resource:Q1414527 property:P1376 ?y } UNION { resource:Q1849088 property:P1376 ?z } UNION { resource:Q1849088 property:P1376 ?y } UNION { resource:Q66470 property:P1376 ?z } UNION { resource:Q66470 property:P1376 ?y } UNION { resource:Q518431 property:P1376 ?z } UNION { resource:Q518431 property:P1376 ?y } UNION { resource:Q2331485 property:P1376 ?z } UNION { resource:Q2331485 property:P1376 ?y } UNION { resource:Q7315630 property:P1376 ?z } UNION { resource:Q7315630 property:P1376 ?y } UNION { resource:Q5964869 property:P1376 ?z } UNION { resource:Q5964869 property:P1376 ?y } UNION { resource:Q1414527 property:P1376 ?z } UNION { resource:Q1414527 property:P1376 ?y } UNION { resource:Q20018155 property:P1376 ?z } UNION { resource:Q20018155 property:P1376 ?y } UNION { resource:Q22442863 property:P1376 ?z } UNION { resource:Q22442863 property:P1376 ?y } UNION { resource:Q202068 property:P1376 ?z } UNION { resource:Q202068 property:P1376 ?y } } . ?z rdf:type ontology:Q161243 . ?y rdf:type ontology:Q15617994 }
['Algiers', 'capital of', {'concept': 'dependent territory'}] ['Algiers', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Curitiba', 'capital of', {'concept': 'dependent territory'}] ['Curitiba', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Madrid', 'capital of', {'concept': 'dependent territory'}] ['Madrid', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Chimbote', 'capital of', {'concept': 'dependent territory'}] ['Chimbote', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['São Paulo', 'capital of', {'concept': 'dependent territory'}] ['São Paulo', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Resistencia', 'capital of', {'concept': 'dependent territory'}] ['Resistencia', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['La Plata', 'capital of', {'concept': 'dependent territory'}] ['La Plata', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Algiers', 'capital of', {'concept': 'dependent territory'}] ['Algiers', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Santo Domingo', 'capital of', {'concept': 'dependent territory'}] ['Santo Domingo', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Washington, D.C.', 'capital of', {'concept': 'dependent territory'}] ['Washington, D.C.', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Trujillo', 'capital of', {'concept': 'dependent territory'}] ['Trujillo', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Algiers property:capital_of ?z } UNION { resource:Algiers property:capital_of ?y } UNION { resource:Curitiba property:capital_of ?z } UNION { resource:Curitiba property:capital_of ?y } UNION { resource:Madrid property:capital_of ?z } UNION { resource:Madrid property:capital_of ?y } UNION { resource:Chimbote property:capital_of ?z } UNION { resource:Chimbote property:capital_of ?y } UNION { resource:São_Paulo property:capital_of ?z } UNION { resource:São_Paulo property:capital_of ?y } UNION { resource:Resistencia property:capital_of ?z } UNION { resource:Resistencia property:capital_of ?y } UNION { resource:La_Plata property:capital_of ?z } UNION { resource:La_Plata property:capital_of ?y } UNION { resource:Algiers property:capital_of ?z } UNION { resource:Algiers property:capital_of ?y } UNION { resource:Santo_Domingo property:capital_of ?z } UNION { resource:Santo_Domingo property:capital_of ?y } UNION { resource:Washington,_D.C. property:capital_of ?z } UNION { resource:Washington,_D.C. property:capital_of ?y } UNION { resource:Trujillo property:capital_of ?z } UNION { resource:Trujillo property:capital_of ?y } } . ?z rdf:type ontology:dependent_territory . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
dependent territory designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q214173
SYSTEM
Did you mean Trujillo ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1414527 property:P1376 ?z } UNION { resource:Q1414527 property:P1376 ?y } UNION { resource:Q1849088 property:P1376 ?z } UNION { resource:Q1849088 property:P1376 ?y } UNION { resource:Q66470 property:P1376 ?z } UNION { resource:Q66470 property:P1376 ?y } UNION { resource:Q518431 property:P1376 ?z } UNION { resource:Q518431 property:P1376 ?y } UNION { resource:Q2331485 property:P1376 ?z } UNION { resource:Q2331485 property:P1376 ?y } UNION { resource:Q7315630 property:P1376 ?z } UNION { resource:Q7315630 property:P1376 ?y } UNION { resource:Q5964869 property:P1376 ?z } UNION { resource:Q5964869 property:P1376 ?y } UNION { resource:Q1414527 property:P1376 ?z } UNION { resource:Q1414527 property:P1376 ?y } UNION { resource:Q20018155 property:P1376 ?z } UNION { resource:Q20018155 property:P1376 ?y } UNION { resource:Q22442863 property:P1376 ?z } UNION { resource:Q22442863 property:P1376 ?y } UNION { resource:Q202068 property:P1376 ?z } UNION { resource:Q202068 property:P1376 ?y } } . ?z rdf:type ontology:Q161243 . ?y rdf:type ontology:Q15617994 }
Did you mean Trujillo ?
Trujillo
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Algiers property:capital_of ?z } UNION { resource:Algiers property:capital_of ?y } UNION { resource:Curitiba property:capital_of ?z } UNION { resource:Curitiba property:capital_of ?y } UNION { resource:Madrid property:capital_of ?z } UNION { resource:Madrid property:capital_of ?y } UNION { resource:Chimbote property:capital_of ?z } UNION { resource:Chimbote property:capital_of ?y } UNION { resource:São_Paulo property:capital_of ?z } UNION { resource:São_Paulo property:capital_of ?y } UNION { resource:Resistencia property:capital_of ?z } UNION { resource:Resistencia property:capital_of ?y } UNION { resource:La_Plata property:capital_of ?z } UNION { resource:La_Plata property:capital_of ?y } UNION { resource:Algiers property:capital_of ?z } UNION { resource:Algiers property:capital_of ?y } UNION { resource:Santo_Domingo property:capital_of ?z } UNION { resource:Santo_Domingo property:capital_of ?y } UNION { resource:Washington,_D.C. property:capital_of ?z } UNION { resource:Washington,_D.C. property:capital_of ?y } UNION { resource:Trujillo property:capital_of ?z } UNION { resource:Trujillo property:capital_of ?y } } . ?z rdf:type ontology:dependent_territory . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Algiers. Could you tell me the answer for that?
(Q3561,P1376,c(Q161243)) (Q3561,P1376,c(Q15617994)) (Q4361,P1376,c(Q161243)) (Q4361,P1376,c(Q15617994)) (Q2807,P1376,c(Q161243)) (Q2807,P1376,c(Q15617994)) (Q518431,P1376,c(Q161243)) (Q518431,P1376,c(Q15617994)) (Q174,P1376,c(Q161243)) (Q174,P1376,c(Q15617994)) (Q44206,P1376,c(Q161243)) (Q44206,P1376,c(Q15617994)) (Q44059,P1376,c(Q161243)) (Q44059,P1376,c(Q15617994)) (Q3561,P1376,c(Q161243)) (Q3561,P1376,c(Q15617994)) (Q34820,P1376,c(Q161243)) (Q34820,P1376,c(Q15617994)) (Q61,P1376,c(Q161243)) (Q61,P1376,c(Q15617994)) (Q214173,P1376,c(Q161243)) (Q214173,P1376,c(Q15617994))
Q3561
['Q3561', 'P1376', {'concept': 'Q161243'}] ['Q3561', 'P1376', {'concept': 'Q15617994'}] ['Q4361', 'P1376', {'concept': 'Q161243'}] ['Q4361', 'P1376', {'concept': 'Q15617994'}] ['Q2807', 'P1376', {'concept': 'Q161243'}] ['Q2807', 'P1376', {'concept': 'Q15617994'}] ['Q518431', 'P1376', {'concept': 'Q161243'}] ['Q518431', 'P1376', {'concept': 'Q15617994'}] ['Q174', 'P1376', {'concept': 'Q161243'}] ['Q174', 'P1376', {'concept': 'Q15617994'}] ['Q44206', 'P1376', {'concept': 'Q161243'}] ['Q44206', 'P1376', {'concept': 'Q15617994'}] ['Q44059', 'P1376', {'concept': 'Q161243'}] ['Q44059', 'P1376', {'concept': 'Q15617994'}] ['Q3561', 'P1376', {'concept': 'Q161243'}] ['Q3561', 'P1376', {'concept': 'Q15617994'}] ['Q34820', 'P1376', {'concept': 'Q161243'}] ['Q34820', 'P1376', {'concept': 'Q15617994'}] ['Q61', 'P1376', {'concept': 'Q161243'}] ['Q61', 'P1376', {'concept': 'Q15617994'}] ['Q214173', 'P1376', {'concept': 'Q161243'}] ['Q214173', 'P1376', {'concept': 'Q15617994'}]
['Algiers', 'capital of', {'concept': 'dependent territory'}] ['Algiers', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Curitiba', 'capital of', {'concept': 'dependent territory'}] ['Curitiba', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Madrid', 'capital of', {'concept': 'dependent territory'}] ['Madrid', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Chimbote', 'capital of', {'concept': 'dependent territory'}] ['Chimbote', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['São Paulo', 'capital of', {'concept': 'dependent territory'}] ['São Paulo', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Resistencia', 'capital of', {'concept': 'dependent territory'}] ['Resistencia', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['La Plata', 'capital of', {'concept': 'dependent territory'}] ['La Plata', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Algiers', 'capital of', {'concept': 'dependent territory'}] ['Algiers', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Santo Domingo', 'capital of', {'concept': 'dependent territory'}] ['Santo Domingo', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Washington, D.C.', 'capital of', {'concept': 'dependent territory'}] ['Washington, D.C.', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Trujillo', 'capital of', {'concept': 'dependent territory'}] ['Trujillo', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
2
Q218272 Q262
(Q3561,P1376,c(Q161243)) (Q3561,P1376,c(Q15617994)) (Q4361,P1376,c(Q161243)) (Q4361,P1376,c(Q15617994)) (Q2807,P1376,c(Q161243)) (Q2807,P1376,c(Q15617994)) (Q518431,P1376,c(Q161243)) (Q518431,P1376,c(Q15617994)) (Q174,P1376,c(Q161243)) (Q174,P1376,c(Q15617994)) (Q44206,P1376,c(Q161243)) (Q44206,P1376,c(Q15617994)) (Q44059,P1376,c(Q161243)) (Q44059,P1376,c(Q15617994)) (Q3561,P1376,c(Q161243)) (Q3561,P1376,c(Q15617994)) (Q34820,P1376,c(Q161243)) (Q34820,P1376,c(Q15617994)) (Q61,P1376,c(Q161243)) (Q61,P1376,c(Q15617994)) (Q214173,P1376,c(Q161243)) (Q214173,P1376,c(Q15617994))
[ANSWER]
['Q3561', 'P1376', {'concept': 'Q161243'}] ['Q3561', 'P1376', {'concept': 'Q15617994'}] ['Q4361', 'P1376', {'concept': 'Q161243'}] ['Q4361', 'P1376', {'concept': 'Q15617994'}] ['Q2807', 'P1376', {'concept': 'Q161243'}] ['Q2807', 'P1376', {'concept': 'Q15617994'}] ['Q518431', 'P1376', {'concept': 'Q161243'}] ['Q518431', 'P1376', {'concept': 'Q15617994'}] ['Q174', 'P1376', {'concept': 'Q161243'}] ['Q174', 'P1376', {'concept': 'Q15617994'}] ['Q44206', 'P1376', {'concept': 'Q161243'}] ['Q44206', 'P1376', {'concept': 'Q15617994'}] ['Q44059', 'P1376', {'concept': 'Q161243'}] ['Q44059', 'P1376', {'concept': 'Q15617994'}] ['Q3561', 'P1376', {'concept': 'Q161243'}] ['Q3561', 'P1376', {'concept': 'Q15617994'}] ['Q34820', 'P1376', {'concept': 'Q161243'}] ['Q34820', 'P1376', {'concept': 'Q15617994'}] ['Q61', 'P1376', {'concept': 'Q161243'}] ['Q61', 'P1376', {'concept': 'Q15617994'}] ['Q214173', 'P1376', {'concept': 'Q161243'}] ['Q214173', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1414527 property:P1376 ?z } UNION { resource:Q1414527 property:P1376 ?y } UNION { resource:Q1849088 property:P1376 ?z } UNION { resource:Q1849088 property:P1376 ?y } UNION { resource:Q66470 property:P1376 ?z } UNION { resource:Q66470 property:P1376 ?y } UNION { resource:Q518431 property:P1376 ?z } UNION { resource:Q518431 property:P1376 ?y } UNION { resource:Q2331485 property:P1376 ?z } UNION { resource:Q2331485 property:P1376 ?y } UNION { resource:Q7315630 property:P1376 ?z } UNION { resource:Q7315630 property:P1376 ?y } UNION { resource:Q5964869 property:P1376 ?z } UNION { resource:Q5964869 property:P1376 ?y } UNION { resource:Q1414527 property:P1376 ?z } UNION { resource:Q1414527 property:P1376 ?y } UNION { resource:Q20018155 property:P1376 ?z } UNION { resource:Q20018155 property:P1376 ?y } UNION { resource:Q22442863 property:P1376 ?z } UNION { resource:Q22442863 property:P1376 ?y } UNION { resource:Q202068 property:P1376 ?z } UNION { resource:Q202068 property:P1376 ?y } } . ?z rdf:type ontology:Q161243 . ?y rdf:type ontology:Q15617994 }
French Algeria Algeria
2
['Algiers', 'capital of', {'concept': 'dependent territory'}] ['Algiers', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Curitiba', 'capital of', {'concept': 'dependent territory'}] ['Curitiba', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Madrid', 'capital of', {'concept': 'dependent territory'}] ['Madrid', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Chimbote', 'capital of', {'concept': 'dependent territory'}] ['Chimbote', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['São Paulo', 'capital of', {'concept': 'dependent territory'}] ['São Paulo', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Resistencia', 'capital of', {'concept': 'dependent territory'}] ['Resistencia', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['La Plata', 'capital of', {'concept': 'dependent territory'}] ['La Plata', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Algiers', 'capital of', {'concept': 'dependent territory'}] ['Algiers', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Santo Domingo', 'capital of', {'concept': 'dependent territory'}] ['Santo Domingo', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Washington, D.C.', 'capital of', {'concept': 'dependent territory'}] ['Washington, D.C.', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Trujillo', 'capital of', {'concept': 'dependent territory'}] ['Trujillo', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Algiers property:capital_of ?z } UNION { resource:Algiers property:capital_of ?y } UNION { resource:Curitiba property:capital_of ?z } UNION { resource:Curitiba property:capital_of ?y } UNION { resource:Madrid property:capital_of ?z } UNION { resource:Madrid property:capital_of ?y } UNION { resource:Chimbote property:capital_of ?z } UNION { resource:Chimbote property:capital_of ?y } UNION { resource:São_Paulo property:capital_of ?z } UNION { resource:São_Paulo property:capital_of ?y } UNION { resource:Resistencia property:capital_of ?z } UNION { resource:Resistencia property:capital_of ?y } UNION { resource:La_Plata property:capital_of ?z } UNION { resource:La_Plata property:capital_of ?y } UNION { resource:Algiers property:capital_of ?z } UNION { resource:Algiers property:capital_of ?y } UNION { resource:Santo_Domingo property:capital_of ?z } UNION { resource:Santo_Domingo property:capital_of ?y } UNION { resource:Washington,_D.C. property:capital_of ?z } UNION { resource:Washington,_D.C. property:capital_of ?y } UNION { resource:Trujillo property:capital_of ?z } UNION { resource:Trujillo property:capital_of ?y } } . ?z rdf:type ontology:dependent_territory . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
How many ship types have exactly 2 administrative territories as their base harbour ?
(c(Q2235308),P532,c(Q56061))
action count
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?z ) WHERE { ?r property:P532 ?i . ?r rdf:type ontology:Q2235308 . ?i rdf:type ontology:Q56061 } GROUP BY ?r } . FILTER ( ?z = 2 ) }
action count
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?z ) WHERE { ?r property:port_of_registry ?i . ?r rdf:type ontology:ship_type . ?i rdf:type ontology:administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?z = 2 ) }
[]
administrative territorial entity ship type
SYSTEM
4
Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action count
action equal
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?z ) WHERE { ?r property:P532 ?i . ?r rdf:type ontology:Q2235308 . ?i rdf:type ontology:Q56061 } GROUP BY ?r } . FILTER ( ?z = 2 ) }
Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
4
action count
action equal
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?z ) WHERE { ?r property:port_of_registry ?i . ?r rdf:type ontology:ship_type . ?i rdf:type ontology:administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?z = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2807
P190
Q56061
USER
How many administrative territories are the sister cities of Madrid ?
(Q2807,P190,c(Q56061))
action count
action filter_type
action find
entity Q2807
relation P190
type Q56061
['Q2807', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { resource:Q2807 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Madrid
action count
action filter_type
action find
entity Madrid
relation sister city
type administrative territorial entity
['Madrid', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { resource:Madrid property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
31
Q3070 Q3551 Q649 Q239 Q472 Q3274 Q3110 Q3579 Q1479 Q3766 Q34820 Q1524 Q956 Q1781 Q1489 Q1555 Q1563 Q518431 Q41211 Q3306 Q2868 Q8678 Q3238 Q270 Q597 Q3688 Q1335 Q64 Q1491 Q60 Q1085
(Q2807,P190,c(Q56061))
action count
action filter_type
action find
entity Q2807
relation P190
type Q56061
[ANSWER]
['Q2807', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { resource:Q2807 property:P190 ?b . ?b rdf:type ontology:Q56061 }
San José Rabat Moscow Brussels Sofia Managua San Salvador Tripoli Bordeaux Damascus Santo Domingo Athens Beijing Budapest Mexico City Guatemala City Havana Chimbote San Juan Panama City Lima Rio de Janeiro Tegucigalpa Warsaw Lisbon Nouakchott Montevideo Berlin La Paz New York City Prague
31
action count
action filter_type
action find
entity Madrid
relation sister city
type administrative territorial entity
['Madrid', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?t ) WHERE { resource:Madrid property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q26152
P190
Q56061
USER
And how about Växjö?
(Q26152,P190,c(Q56061))
action count
action filter_type
action find
entity Q26152
relation P190
type Q56061
['Q26152', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q26152 property:P190 ?a }
Växjö
action count
action filter_type
action find
entity Växjö
relation sister city
type administrative territorial entity
['Växjö', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Växjö property:sister_city ?a }
[]
administrative territorial entity
SYSTEM
7
Q205905 Q4115712 Q50992 Q1240428 Q1709 Q83178 Q214777
(Q26152,P190,c(Q56061))
action count
action filter_type
action find
entity Q26152
relation P190
type Q56061
[ANSWER]
['Q26152', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { ?a rdf:type ontology:Q56061 . resource:Q26152 property:P190 ?a }
Lancaster Kaunas Pobiedziska Skagaströnd Schwerin Almere Lohja
7
action count
action filter_type
action find
entity Växjö
relation sister city
type administrative territorial entity
['Växjö', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Växjö property:sister_city ?a }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q280450
Q56061
USER
And also tell me about Scheibbs?
(Q280450,P190,c(Q56061))
action count
action filter_type
action find
entity Q280450
relation P190
type Q56061
['Q280450', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Q280450 property:P190 ?o . ?o rdf:type ontology:Q56061 }
Scheibbs
action count
action filter_type
action find
entity Scheibbs
relation sister city
type administrative territorial entity
['Scheibbs', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Scheibbs property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q280450,P190,c(Q56061))
action count
action filter_type
action find
entity Q280450
relation P190
type Q56061
[ANSWER]
['Q280450', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Q280450 property:P190 ?o . ?o rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Scheibbs
relation sister city
type administrative territorial entity
['Scheibbs', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Scheibbs property:sister_city ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P1376
Q7275
USER
What have Madrid as their capital ?
(Q2807,P1376,c(Q7275))
action filter_type
action find
entity Q2807
relation P1376
type Q7275
['Q2807', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7275 . resource:Q2807 property:P1376 ?n }
Madrid
action filter_type
action find
entity Madrid
relation capital of
type state
['Madrid', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:state . resource:Madrid property:capital_of ?n }
[]
state
Q1709185 Q1044536 Q497777
SYSTEM
Kingdom of Spain under Joseph Bonaparte, Spain under the Restoration, First Spanish Republic
Q1044536 Q178038 Q1709185 Q497777
(Q2807,P1376,c(Q7275))
action filter_type
action find
entity Q2807
relation P1376
type Q7275
[ANSWERS] have Madrid as their capital
['Q2807', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q7275 . resource:Q2807 property:P1376 ?n }
Spain under the Restoration Second Spanish Republic Kingdom of Spain under Joseph Bonaparte First Spanish Republic
Kingdom of Spain under Joseph Bonaparte, Spain under the Restoration and First Spanish Republic have Madrid as their capital
Kingdom of Spain under Joseph Bonaparte Spain under the Restoration First Spanish Republic
action filter_type
action find
entity Madrid
relation capital of
type state
['Madrid', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:state . resource:Madrid property:capital_of ?n }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q2807
Q13220204
USER
And which administrative country subdivision?
(Q2807,P1376,c(Q13220204))
action filter_type
action find
entity Q2807
relation P1376
type Q13220204
['Q2807', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?f WHERE { resource:Q2807 property:P1376 ?f . ?f rdf:type ontology:Q13220204 }
Madrid
action filter_type
action find
entity Madrid
relation capital of
type second-level administrative country subdivision
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?f WHERE { resource:Madrid property:capital_of ?f . ?f rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q24069437
SYSTEM
Madrid Province
Q24069437
(Q2807,P1376,c(Q13220204))
action filter_type
action find
entity Q2807
relation P1376
type Q13220204
[ANSWER]
['Q2807', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?f WHERE { resource:Q2807 property:P1376 ?f . ?f rdf:type ontology:Q13220204 }
Madrid Province
Madrid Province
action filter_type
action find
entity Madrid
relation capital of
type second-level administrative country subdivision
['Madrid', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?f WHERE { resource:Madrid property:capital_of ?f . ?f rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q271669 Q13220204
USER
Which landforms are approximately 1 administrative country subdivision named after ?
(c(Q13220204),P138,c(Q271669))
action approx
action find_reverse_tuple_counts
relation P138
type Q271669
type Q13220204
value 1
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q271669'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?s = 1 ) . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:P138 ?t . ?t rdf:type ontology:Q271669 . ?a rdf:type ontology:Q13220204 } GROUP BY ?t } }
action approx
action find_reverse_tuple_counts
relation named after
type landform
type second-level administrative country subdivision
value 1
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'landform'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?s = 1 ) . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:named_after ?t . ?t rdf:type ontology:landform . ?a rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?t } }
[]
landform second-level administrative country subdivision
Q270375 Q1069922
SYSTEM
Ko Samui, Ko Pha Ngan
Q270375 Q1069922
(c(Q13220204),P138,c(Q271669))
action approx
action find_reverse_tuple_counts
relation P138
type Q271669
type Q13220204
value 1
[ANSWERS] are approximately 1 administrative country subdivision named after
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q271669'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?s = 1 ) . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:P138 ?t . ?t rdf:type ontology:Q271669 . ?a rdf:type ontology:Q13220204 } GROUP BY ?t } }
Ko Samui Ko Pha Ngan
Ko Samui and Ko Pha Ngan are approximately 1 administrative country subdivision named after
Ko Samui Ko Pha Ngan
action approx
action find_reverse_tuple_counts
relation named after
type landform
type second-level administrative country subdivision
value 1
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'landform'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?s = 1 ) . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:named_after ?t . ?t rdf:type ontology:landform . ?a rdf:type ontology:second-level_administrative_country_subdivision } GROUP BY ?t } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1069922
P706
Q15324
USER
Which body of water is that landform located on ?
(Q1069922,P706,c(Q15324))
action filter_type
action find
entity Q1069922
relation P706
type Q15324
['Q1069922', 'P706', {'concept': 'Q15324'}]
SELECT DISTINCT ?q WHERE { resource:Q1069922 property:P706 ?q . ?q rdf:type ontology:Q15324 }
Ko Pha Ngan
action filter_type
action find
entity Ko Pha Ngan
relation located on terrain feature
type body of water
['Ko Pha Ngan', 'located on terrain feature', {'concept': 'body of water'}]
SELECT DISTINCT ?q WHERE { resource:Ko_Pha_Ngan property:located_on_terrain_feature ?q . ?q rdf:type ontology:body_of_water }
[]
body of water
Clarification for simple ques.
Q270375
SYSTEM
Did you mean Ko Samui ?
Q270375 Q1069922
(Q270375,P706,c(Q15324)) (Q1069922,P706,c(Q15324))
[ANSWER]
['Q270375', 'P706', {'concept': 'Q15324'}] ['Q1069922', 'P706', {'concept': 'Q15324'}]
SELECT DISTINCT ?q WHERE { resource:Q1069922 property:P706 ?q . ?q rdf:type ontology:Q15324 }
Ko Samui Ko Pha Ngan
Did you mean Ko Samui ?
Ko Samui
['Ko Samui', 'located on terrain feature', {'concept': 'body of water'}] ['Ko Pha Ngan', 'located on terrain feature', {'concept': 'body of water'}]
SELECT DISTINCT ?q WHERE { resource:Ko_Pha_Ngan property:located_on_terrain_feature ?q . ?q rdf:type ontology:body_of_water }
[]
Simple Question (Coreferenced)
USER
No, I meant Ko Pha Ngan. Could you tell me the answer for that?
(Q1069922,P706,c(Q15324))
Q1069922
['Q1069922', 'P706', {'concept': 'Q15324'}]
['Ko Pha Ngan', 'located on terrain feature', {'concept': 'body of water'}]
[]
Q131217
SYSTEM
Gulf of Thailand
Q131217
(Q1069922,P706,c(Q15324))
action filter_type
action find
entity Q1069922
relation P706
type Q15324
That landform is located in [ANSWER]
['Q1069922', 'P706', {'concept': 'Q15324'}]
SELECT DISTINCT ?q WHERE { resource:Q1069922 property:P706 ?q . ?q rdf:type ontology:Q15324 }
Gulf of Thailand
That landform is located in Gulf of Thailand
Gulf of Thailand
action filter_type
action find
entity Ko Pha Ngan
relation located on terrain feature
type body of water
['Ko Pha Ngan', 'located on terrain feature', {'concept': 'body of water'}]
SELECT DISTINCT ?q WHERE { resource:Ko_Pha_Ngan property:located_on_terrain_feature ?q . ?q rdf:type ontology:body_of_water }
[]