Simple Question (Direct)
Simple Question
Q7614856
P21
Q290
USER
What is the sex of Steven J. Durham ?
(Q7614856,P21,c(Q290))
action filter_type
action find
entity Q7614856
relation P21
type Q290
['Q7614856', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7614856 property:P21 ?j . ?j rdf:type ontology:Q290 }
Steven J. Durham
action filter_type
action find
entity Steven J. Durham
relation gender
type sex
['Steven J. Durham', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Steven_J._Durham property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7614856,P21,c(Q290))
action filter_type
action find
entity Q7614856
relation P21
type Q290
The sex of Steven J. Durham is a [ANSWER]
['Q7614856', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7614856 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
The sex of Steven J. Durham is a male
male
action filter_type
action find
entity Steven J. Durham
relation gender
type sex
['Steven J. Durham', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Steven_J._Durham property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7614856
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q6581097,P1412,c(Q34770))
action filter_type
action find
entity Q7614856
relation P1412
type Q34770
['Q6581097', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q7614856 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Steven J. Durham
action filter_type
action find
entity Steven J. Durham
relation languages spoken, written or signed
type language
['male', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Steven_J._Durham property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6581097,P1412,c(Q34770))
action filter_type
action find
entity Q7614856
relation P1412
type Q34770
[ANSWER] is that person capable of writing
['Q6581097', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q7614856 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
English
English is that person capable of writing
English
action filter_type
action find
entity Steven J. Durham
relation languages spoken, written or signed
type language
['male', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Steven_J._Durham property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1692633 Q7614856
P19 P27
Q15617994
USER
Which administrative territories are the native countriesof Steven J. Durham or were Theodor Thieme born ?
OR((Q7614856,P27,c(Q15617994)), (Q1692633,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q7614856
relation P27
action find
entity Q1692633
relation P19
type Q15617994
{'OR': [['Q7614856', 'P27', {'concept': 'Q15617994'}], ['Q1692633', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1692633 property:P19 ?j } UNION { resource:Q7614856 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Theodor Thieme Steven J. Durham
action filter_type
action union
action find
entity Steven J. Durham
relation country of citizenship
action find
entity Theodor Thieme
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Steven J. Durham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Theodor Thieme', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Theodor_Thieme property:place_of_birth ?j } UNION { resource:Steven_J._Durham property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q4077 Q30
SYSTEM
Görlitz, United States of America
Q4077 Q30
OR((Q7614856,P27,c(Q15617994)), (Q1692633,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q7614856
relation P27
action find
entity Q1692633
relation P19
type Q15617994
[ANSWERS] are the native countriesof Steven J. Durham or were Theodor Thieme born
{'OR': [['Q7614856', 'P27', {'concept': 'Q15617994'}], ['Q1692633', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q1692633 property:P19 ?j } UNION { resource:Q7614856 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Görlitz United States of America
Görlitz and United States of America are the native countriesof Steven J. Durham or were Theodor Thieme born
Görlitz United States of America
action filter_type
action union
action find
entity Steven J. Durham
relation country of citizenship
action find
entity Theodor Thieme
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Steven J. Durham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Theodor Thieme', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Theodor_Thieme property:place_of_birth ?j } UNION { resource:Steven_J._Durham property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q34770 Q7275 Q15617994
USER
How many languages are considered to be the official language of around 24 states and administrative territories ?
(c(Q7275)|c(Q15617994),P37,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
value 24
[[{'concept': 'Q7275'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?s WHERE { VALUES ( ?l ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } . ?g rdf:type ?l } GROUP BY ?s } . FILTER ( ?p = 24 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type state
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
value 24
[[{'concept': 'state'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?s WHERE { VALUES ( ?l ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?g rdf:type ?l } GROUP BY ?s } . FILTER ( ?p = 24 ) }
[]
language state designation for an administrative territorial entity
SYSTEM
3
Q652 Q1321 Q397
(c(Q7275)|c(Q15617994),P37,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q7275
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
value 24
[ANSWER]
[[{'concept': 'Q7275'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?s WHERE { VALUES ( ?l ) { ( ontology:Q7275 ) ( ontology:Q15617994 ) } . ?g rdf:type ?l } GROUP BY ?s } . FILTER ( ?p = 24 ) }
Italian Spanish Latin
3
action count
action approx
action union
action find_reverse_tuple_counts
relation official language
type language
type state
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
value 24
[[{'concept': 'state'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?s WHERE { VALUES ( ?l ) { ( ontology:state ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?g rdf:type ?l } GROUP BY ?s } . FILTER ( ?p = 24 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4077
P47
Q15617994
USER
Who shares the border with Görlitz ?
(Q4077,P47,c(Q15617994))
action filter_type
action find
entity Q4077
relation P47
type Q15617994
['Q4077', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q4077 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Görlitz
action filter_type
action find
entity Görlitz
relation shares border with
type designation for an administrative territorial entity
['Görlitz', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Görlitz property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q502472
SYSTEM
Neißeaue
Q502472
(Q4077,P47,c(Q15617994))
action filter_type
action find
entity Q4077
relation P47
type Q15617994
[ANSWER] shares the border with Görlitz
['Q4077', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q4077 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Neißeaue
Neißeaue shares the border with Görlitz
Neißeaue
action filter_type
action find
entity Görlitz
relation shares border with
type designation for an administrative territorial entity
['Görlitz', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Görlitz property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q42994
Q15617994
USER
And also tell me about Vignate?
(Q42994,P47,c(Q15617994))
action filter_type
action find
entity Q42994
relation P47
type Q15617994
['Q42994', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q42994 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Vignate
action filter_type
action find
entity Vignate
relation shares border with
type designation for an administrative territorial entity
['Vignate', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Vignate property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q42553 Q185619 Q42513
SYSTEM
Settala, Cernusco sul Naviglio, Liscate
Q42513 Q42940 Q42528 Q42553 Q42441 Q185619
(Q42994,P47,c(Q15617994))
action filter_type
action find
entity Q42994
relation P47
type Q15617994
[ANSWERS]
['Q42994', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q42994 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Liscate Melzo Rodano Settala Cassina de' Pecchi Cernusco sul Naviglio
Settala Cernusco sul Naviglio Liscate
action filter_type
action find
entity Vignate
relation shares border with
type designation for an administrative territorial entity
['Vignate', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Vignate property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q185619
P17
Q15617994
USER
Which administrative territory is Cernusco sul Naviglio located in ?
(Q185619,P17,c(Q15617994))
action filter_type
action find
entity Q185619
relation P17
type Q15617994
['Q185619', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q185619 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Cernusco sul Naviglio
action filter_type
action find
entity Cernusco sul Naviglio
relation country
type designation for an administrative territorial entity
['Cernusco sul Naviglio', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Cernusco_sul_Naviglio property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q185619,P17,c(Q15617994))
action filter_type
action find
entity Q185619
relation P17
type Q15617994
Which administrative territory is Cernusco sul Naviglio located in
['Q185619', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q185619 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Italy
Which administrative territory is Cernusco sul Naviglio located in
Italy
action filter_type
action find
entity Cernusco sul Naviglio
relation country
type designation for an administrative territorial entity
['Cernusco sul Naviglio', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Cernusco_sul_Naviglio property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]