Simple Question (Direct)
Simple Question
Q47164
P47
Q486972
USER
Which human settlements share border with Santa Monica ?
(Q47164,P47,c(Q486972))
action filter_type
action find
entity Q47164
relation P47
type Q486972
['Q47164', 'P47', {'concept': 'Q486972'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q486972 . resource:Q47164 property:P47 ?v }
Santa Monica
action filter_type
action find
entity Santa Monica
relation shares border with
type human settlement
['Santa Monica', 'shares border with', {'concept': 'human settlement'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:human_settlement . resource:Santa_Monica property:shares_border_with ?v }
[]
human settlement
Q773853 Q1370207
SYSTEM
Venice, Pacific Palisades
Q773853 Q1370207
(Q47164,P47,c(Q486972))
action filter_type
action find
entity Q47164
relation P47
type Q486972
[ANSWERS] share border with Santa Monica
['Q47164', 'P47', {'concept': 'Q486972'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q486972 . resource:Q47164 property:P47 ?v }
Venice Pacific Palisades
Venice and Pacific Palisades share border with Santa Monica
Venice Pacific Palisades
action filter_type
action find
entity Santa Monica
relation shares border with
type human settlement
['Santa Monica', 'shares border with', {'concept': 'human settlement'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:human_settlement . resource:Santa_Monica property:shares_border_with ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47164
P190
Q486972
USER
Which human settlement is partner town of Santa Monica ?
(Q47164,P190,c(Q486972))
action filter_type
action find
entity Q47164
relation P190
type Q486972
['Q47164', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?j WHERE { resource:Q47164 property:P190 ?j . ?j rdf:type ontology:Q486972 }
Santa Monica
action filter_type
action find
entity Santa Monica
relation sister city
type human settlement
['Santa Monica', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?j WHERE { resource:Santa_Monica property:sister_city ?j . ?j rdf:type ontology:human_settlement }
[]
human settlement
Q40194
SYSTEM
Mazatlán
Q40194
(Q47164,P190,c(Q486972))
action filter_type
action find
entity Q47164
relation P190
type Q486972
[ANSWER] is partner town of Santa Monica
['Q47164', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?j WHERE { resource:Q47164 property:P190 ?j . ?j rdf:type ontology:Q486972 }
Mazatlán
Mazatlán is partner town of Santa Monica
Mazatlán
action filter_type
action find
entity Santa Monica
relation sister city
type human settlement
['Santa Monica', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?j WHERE { resource:Santa_Monica property:sister_city ?j . ?j rdf:type ontology:human_settlement }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q47164
Q515
USER
And which city?
(Q47164,P190,c(Q515))
action filter_type
action find
entity Q47164
relation P190
type Q515
['Q47164', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q47164 property:P190 ?g . ?g rdf:type ontology:Q515 }
Santa Monica
action filter_type
action find
entity Santa Monica
relation sister city
type city
['Santa Monica', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Santa_Monica property:sister_city ?g . ?g rdf:type ontology:city }
[]
city
Q496072 Q2880
SYSTEM
Fujinomiya, Hamm
Q496072 Q2880
(Q47164,P190,c(Q515))
action filter_type
action find
entity Q47164
relation P190
type Q515
[ANSWERS]
['Q47164', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q47164 property:P190 ?g . ?g rdf:type ontology:Q515 }
Fujinomiya Hamm
Fujinomiya Hamm
action filter_type
action find
entity Santa Monica
relation sister city
type city
['Santa Monica', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Santa_Monica property:sister_city ?g . ?g rdf:type ontology:city }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P190
Q15617994 Q515
USER
How many cities are twin town of less number of administrative territories than that city ?
(c(Q515),P190,c(Q15617994))
[{'concept': 'Q515'}, 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P190 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'city'}, 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:sister_city ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity city
Comparative|Count over More/Less|Single entity type|Clarification
Q496072
SYSTEM
Did you mean Fujinomiya ?
(c(Q515),P190,c(Q15617994))
[ANSWER]
[{'concept': 'Q515'}, 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P190 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15617994 }
Did you mean Fujinomiya ?
Fujinomiya
[{'concept': 'city'}, 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:sister_city ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q515),P190,c(Q15617994))
[{'concept': 'Q515'}, 'P190', {'concept': 'Q15617994'}]
[{'concept': 'city'}, 'sister city', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
0
(c(Q515),P190,c(Q15617994))
[ANSWER]
[{'concept': 'Q515'}, 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P190 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15617994 }
0
[{'concept': 'city'}, 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:sister_city ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q496072
P17
Q15617994
USER
Which administrative territory is that city present in ?
action filter_type
action find
entity Q496072
relation P17
type Q15617994
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q496072 property:P17 ?v }
Fujinomiya
action filter_type
action find
entity Fujinomiya
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Fujinomiya property:country ?v }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
action filter_type
action find
entity Q496072
relation P17
type Q15617994
That city is in [ANSWER]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q496072 property:P17 ?v }
Japan
That city is in Japan
Japan
action filter_type
action find
entity Fujinomiya
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Fujinomiya property:country ?v }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q496072 Q613
P190
Q515
USER
How many cities are partner towns of Fujinomiya or Emirate of Dubai ?
(Q496072,P190,c(Q515)) (Q613,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q496072
relation P190
type Q515
action filter_type
action find
entity Q613
relation P190
type Q515
['Q496072', 'P190', {'concept': 'Q515'}] ['Q613', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { { resource:Q496072 property:P190 ?m . ?m rdf:type ontology:Q515 } UNION { resource:Q613 property:P190 ?m . ?m rdf:type ontology:Q515 } }
Fujinomiya Emirate of Dubai
action count
action union
action filter_type
action find
entity Fujinomiya
relation sister city
type city
action filter_type
action find
entity Emirate of Dubai
relation sister city
type city
['Fujinomiya', 'sister city', {'concept': 'city'}] ['Emirate of Dubai', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { { resource:Fujinomiya property:sister_city ?m . ?m rdf:type ontology:city } UNION { resource:Emirate_of_Dubai property:sister_city ?m . ?m rdf:type ontology:city } }
[]
city
SYSTEM
3
Q16520 Q1530 Q1794
(Q496072,P190,c(Q515)) (Q613,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q496072
relation P190
type Q515
action filter_type
action find
entity Q613
relation P190
type Q515
[ANSWER]
['Q496072', 'P190', {'concept': 'Q515'}] ['Q613', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { { resource:Q496072 property:P190 ?m . ?m rdf:type ontology:Q515 } UNION { resource:Q613 property:P190 ?m . ?m rdf:type ontology:Q515 } }
Busan Baghdad Frankfurt
3
action count
action union
action filter_type
action find
entity Fujinomiya
relation sister city
type city
action filter_type
action find
entity Emirate of Dubai
relation sister city
type city
['Fujinomiya', 'sister city', {'concept': 'city'}] ['Emirate of Dubai', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { { resource:Fujinomiya property:sister_city ?m . ?m rdf:type ontology:city } UNION { resource:Emirate_of_Dubai property:sister_city ?m . ?m rdf:type ontology:city } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have a diplomatic relationship with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?x ) WHERE { ?t property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?x = 1 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?x ) WHERE { ?t property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?x = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
4
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?x ) WHERE { ?t property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?x = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
4
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?x ) WHERE { ?t property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?x = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q46940 Q496072
P190
Q56061
USER
Which administrative territories are twin towns of Fujinomiya or Alcalá de Henares ?
OR((Q496072,P190,c(Q56061)), (Q46940,P190,c(Q56061)))
action filter_type
action union
action find
entity Q496072
relation P190
action find
entity Q46940
relation P190
type Q56061
{'OR': [['Q496072', 'P190', {'concept': 'Q56061'}], ['Q46940', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?f ) { ( resource:Q496072 ) ( resource:Q46940 ) } . ?f property:P190 ?d } . ?d rdf:type ontology:Q56061 }
Alcalá de Henares Fujinomiya
action filter_type
action union
action find
entity Fujinomiya
relation sister city
action find
entity Alcalá de Henares
relation sister city
type administrative territorial entity
{'OR': [['Fujinomiya', 'sister city', {'concept': 'administrative territorial entity'}], ['Alcalá de Henares', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?f ) { ( resource:Fujinomiya ) ( resource:Alcalá_de_Henares ) } . ?f property:sister_city ?d } . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q172438 Q490732 Q37104 Q54118 Q47164
SYSTEM
Peterborough, Fort Collins, Alajuela, Azul, Santa Monica
Q172438 Q490732 Q37104 Q54118 Q47164
OR((Q496072,P190,c(Q56061)), (Q46940,P190,c(Q56061)))
action filter_type
action union
action find
entity Q496072
relation P190
action find
entity Q46940
relation P190
type Q56061
[ANSWERS] are twin towns of Fujinomiya or Alcalá de Henares
{'OR': [['Q496072', 'P190', {'concept': 'Q56061'}], ['Q46940', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?f ) { ( resource:Q496072 ) ( resource:Q46940 ) } . ?f property:P190 ?d } . ?d rdf:type ontology:Q56061 }
Peterborough Fort Collins Alajuela Azul Santa Monica
Peterborough, Fort Collins, Alajuela, Azul and Santa Monica are twin towns of Fujinomiya or Alcalá de Henares
Peterborough Fort Collins Alajuela Azul Santa Monica
action filter_type
action union
action find
entity Fujinomiya
relation sister city
action find
entity Alcalá de Henares
relation sister city
type administrative territorial entity
{'OR': [['Fujinomiya', 'sister city', {'concept': 'administrative territorial entity'}], ['Alcalá de Henares', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { VALUES ( ?f ) { ( resource:Fujinomiya ) ( resource:Alcalá_de_Henares ) } . ?f property:sister_city ?d } . ?d rdf:type ontology:administrative_territorial_entity }
[]