Simple Question (Direct)
Simple Question
Q3289514
P1412
Q34770
USER
Which language can Marcela Paz read ?
(Q3289514,P1412,c(Q34770))
action filter_type
action find
entity Q3289514
relation P1412
type Q34770
['Q3289514', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q3289514 property:P1412 ?z . ?z rdf:type ontology:Q34770 }
Marcela Paz
action filter_type
action find
entity Marcela Paz
relation languages spoken, written or signed
type language
['Marcela Paz', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Marcela_Paz property:languages_spoken,_written_or_signed ?z . ?z rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q3289514,P1412,c(Q34770))
action filter_type
action find
entity Q3289514
relation P1412
type Q34770
Marcela Paz can read in [ANSWER]
['Q3289514', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { resource:Q3289514 property:P1412 ?z . ?z rdf:type ontology:Q34770 }
Spanish
Marcela Paz can read in Spanish
Spanish
action filter_type
action find
entity Marcela Paz
relation languages spoken, written or signed
type language
['Marcela Paz', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { resource:Marcela_Paz property:languages_spoken,_written_or_signed ?z . ?z rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3289514
P20
Q515
USER
Where did the demise of Marcela Paz occur ?
(Q3289514,P20,c(Q515))
action filter_type
action find
entity Q3289514
relation P20
type Q515
['Q3289514', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q515 . resource:Q3289514 property:P20 ?k }
Marcela Paz
action filter_type
action find
entity Marcela Paz
relation place of death
type city
['Marcela Paz', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:city . resource:Marcela_Paz property:place_of_death ?k }
[]
city
Q2887
SYSTEM
Santiago
Q2887
(Q3289514,P20,c(Q515))
action filter_type
action find
entity Q3289514
relation P20
type Q515
The demise of Marcela Paz occurred in [ANSWER]
['Q3289514', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q515 . resource:Q3289514 property:P20 ?k }
Santiago
The demise of Marcela Paz occurred in Santiago
Santiago
action filter_type
action find
entity Marcela Paz
relation place of death
type city
['Marcela Paz', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:city . resource:Marcela_Paz property:place_of_death ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3289514
P21
Q290
USER
Which sex does Marcela Paz belong to ?
(Q3289514,P21,c(Q290))
action filter_type
action find
entity Q3289514
relation P21
type Q290
['Q3289514', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q3289514 property:P21 ?a . ?a rdf:type ontology:Q290 }
Marcela Paz
action filter_type
action find
entity Marcela Paz
relation gender
type sex
['Marcela Paz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Marcela_Paz property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q3289514,P21,c(Q290))
action filter_type
action find
entity Q3289514
relation P21
type Q290
Marcela Paz belongs to [ANSWER]
['Q3289514', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q3289514 property:P21 ?a . ?a rdf:type ontology:Q290 }
female
Marcela Paz belongs to female
female
action filter_type
action find
entity Marcela Paz
relation gender
type sex
['Marcela Paz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Marcela_Paz property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5564012
Q290
USER
And how about Giovanni Vendramini?
(Q5564012,P21,c(Q290))
action filter_type
action find
entity Q5564012
relation P21
type Q290
['Q5564012', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q5564012 property:P21 ?r . ?r rdf:type ontology:Q290 }
Giovanni Vendramini
action filter_type
action find
entity Giovanni Vendramini
relation gender
type sex
['Giovanni Vendramini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Giovanni_Vendramini property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5564012,P21,c(Q290))
action filter_type
action find
entity Q5564012
relation P21
type Q290
[ANSWER]
['Q5564012', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q5564012 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Giovanni Vendramini
relation gender
type sex
['Giovanni Vendramini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Giovanni_Vendramini property:gender ?r . ?r rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P609
Q515 Q83620 Q34442
USER
Which cities are the destination of around 2 thoroughfares or roads ?
(c(Q83620)|c(Q34442),P609,c(Q515))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
value 2
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?j = 2 ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:P609 ?x . ?x rdf:type ontology:Q515 . ?s rdf:type ontology:Q83620 } UNION { ?s property:P609 ?x . ?x rdf:type ontology:Q515 . ?s rdf:type ontology:Q34442 } } GROUP BY ?x } }
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
value 2
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?j = 2 ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:terminus_location ?x . ?x rdf:type ontology:city . ?s rdf:type ontology:thoroughfare } UNION { ?s property:terminus_location ?x . ?x rdf:type ontology:city . ?s rdf:type ontology:road } } GROUP BY ?x } }
[]
city thoroughfare road
Q182852 Q58560 Q183584
SYSTEM
Kunming, Qinhuangdao, Lanzhou
Q182852 Q58560 Q211243 Q183584
(c(Q83620)|c(Q34442),P609,c(Q515))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
value 2
[ANSWERS] are the destination of around 2 thoroughfares or roads
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?j = 2 ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:P609 ?x . ?x rdf:type ontology:Q515 . ?s rdf:type ontology:Q83620 } UNION { ?s property:P609 ?x . ?x rdf:type ontology:Q515 . ?s rdf:type ontology:Q34442 } } GROUP BY ?x } }
Kunming Qinhuangdao Yinchuan Lanzhou
Kunming, Qinhuangdao and Lanzhou are the destination of around 2 thoroughfares or roads
Kunming Qinhuangdao Lanzhou
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type city
type road
value 2
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?j = 2 ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:terminus_location ?x . ?x rdf:type ontology:city . ?s rdf:type ontology:thoroughfare } UNION { ?s property:terminus_location ?x . ?x rdf:type ontology:city . ?s rdf:type ontology:road } } GROUP BY ?x } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q58560
P17
Q15617994
USER
Which administrative territory is that city situated in ?
(Q58560,P17,c(Q15617994))
action filter_type
action find
entity Q58560
relation P17
type Q15617994
['Q58560', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q58560 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Qinhuangdao
action filter_type
action find
entity Qinhuangdao
relation country
type designation for an administrative territorial entity
['Qinhuangdao', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Qinhuangdao property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q183584
SYSTEM
Did you mean Lanzhou ?
Q182852 Q58560 Q183584
(Q182852,P17,c(Q15617994)) (Q58560,P17,c(Q15617994)) (Q183584,P17,c(Q15617994))
[ANSWER]
['Q182852', 'P17', {'concept': 'Q15617994'}] ['Q58560', 'P17', {'concept': 'Q15617994'}] ['Q183584', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q58560 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Kunming Qinhuangdao Lanzhou
Did you mean Lanzhou ?
Lanzhou
['Kunming', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Qinhuangdao', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Lanzhou', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Qinhuangdao property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Qinhuangdao. Could you tell me the answer for that?
(Q58560,P17,c(Q15617994))
Q58560
['Q58560', 'P17', {'concept': 'Q15617994'}]
['Qinhuangdao', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q148
SYSTEM
People's Republic of China
Q148
(Q58560,P17,c(Q15617994))
action filter_type
action find
entity Q58560
relation P17
type Q15617994
That city is situated in [ANSWER]
['Q58560', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q58560 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
People's Republic of China
That city is situated in People's Republic of China
People's Republic of China
action filter_type
action find
entity Qinhuangdao
relation country
type designation for an administrative territorial entity
['Qinhuangdao', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Qinhuangdao property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q58560
P190
Q56061 Q515
USER
How many administrative territories or cities are sister town of Qinhuangdao ?
(c(Q56061),P190,Q58560) (c(Q515),P190,Q58560)
action count
action union
action filter_type
action find_reverse
entity Q58560
relation P190
type Q56061
action filter_type
action find_reverse
entity Q58560
relation P190
type Q515
[{'concept': 'Q56061'}, 'P190', 'Q58560'] [{'concept': 'Q515'}, 'P190', 'Q58560']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?h rdf:type ?s }
Qinhuangdao
action count
action union
action filter_type
action find_reverse
entity Qinhuangdao
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Qinhuangdao
relation sister city
type city
[{'concept': 'administrative territorial entity'}, 'sister city', 'Qinhuangdao'] [{'concept': 'city'}, 'sister city', 'Qinhuangdao']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?h rdf:type ?s }
[]
administrative territorial entity city
SYSTEM
3
Q11125 Q846351 Q42105
(c(Q56061),P190,Q58560) (c(Q515),P190,Q58560)
action count
action union
action filter_type
action find_reverse
entity Q58560
relation P190
type Q56061
action filter_type
action find_reverse
entity Q58560
relation P190
type Q515
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q58560'] [{'concept': 'Q515'}, 'P190', 'Q58560']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?h rdf:type ?s }
Lugo Miyazu Seosan
3
action count
action union
action filter_type
action find_reverse
entity Qinhuangdao
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Qinhuangdao
relation sister city
type city
[{'concept': 'administrative territorial entity'}, 'sister city', 'Qinhuangdao'] [{'concept': 'city'}, 'sister city', 'Qinhuangdao']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?h rdf:type ?s }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories holds diplomatic relationship with atleast 13 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?m ) AS ?l ) WHERE { ?v property:P530 ?m . ?v rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?l >= 13 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?m ) AS ?l ) WHERE { ?v property:diplomatic_relation ?m . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?l >= 13 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
8
Q801 Q805 Q142 Q148 Q159 Q155 Q30 Q38
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?m ) AS ?l ) WHERE { ?v property:P530 ?m . ?v rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?l >= 13 ) }
Israel Yemen France People's Republic of China Russia Brazil United States of America Italy
8
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?m ) AS ?l ) WHERE { ?v property:diplomatic_relation ?m . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?l >= 13 ) }
[]