Simple Question (Direct)
Simple Question
Q7349255
P106
Q12737077
USER
What are the job of Robert Rhodes James ?
(Q7349255,P106,c(Q12737077))
action filter_type
action find
entity Q7349255
relation P106
type Q12737077
['Q7349255', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q7349255 property:P106 ?m }
Robert Rhodes James
action filter_type
action find
entity Robert Rhodes James
relation occupation
type occupation
['Robert Rhodes James', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Robert_Rhodes_James property:occupation ?m }
[]
occupation
Q201788 Q864380
SYSTEM
historian, biographer
Q201788 Q864380
(Q7349255,P106,c(Q12737077))
action filter_type
action find
entity Q7349255
relation P106
type Q12737077
The job of Robert Rhodes James are a [ANSWERS]
['Q7349255', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q7349255 property:P106 ?m }
historian biographer
The job of Robert Rhodes James are a historian and biographer
historian biographer
action filter_type
action find
entity Robert Rhodes James
relation occupation
type occupation
['Robert Rhodes James', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Robert_Rhodes_James property:occupation ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7349255
P1412
Q34770
USER
Which language is spoken by that person ?
(Q201788,P1412,c(Q34770)) (Q864380,P1412,c(Q34770))
action filter_type
action find
entity Q7349255
relation P1412
type Q34770
['Q201788', 'P1412', {'concept': 'Q34770'}] ['Q864380', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q7349255 property:P1412 ?g . ?g rdf:type ontology:Q34770 }
Robert Rhodes James
action filter_type
action find
entity Robert Rhodes James
relation languages spoken, written or signed
type language
['historian', 'languages spoken, written or signed', {'concept': 'language'}] ['biographer', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:Robert_Rhodes_James property:languages_spoken,_written_or_signed ?g . ?g rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q201788,P1412,c(Q34770)) (Q864380,P1412,c(Q34770))
action filter_type
action find
entity Q7349255
relation P1412
type Q34770
Are [ANSWER] is spoken by that person
['Q201788', 'P1412', {'concept': 'Q34770'}] ['Q864380', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { resource:Q7349255 property:P1412 ?g . ?g rdf:type ontology:Q34770 }
English
Are English is spoken by that person
English
action filter_type
action find
entity Robert Rhodes James
relation languages spoken, written or signed
type language
['historian', 'languages spoken, written or signed', {'concept': 'language'}] ['biographer', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { resource:Robert_Rhodes_James property:languages_spoken,_written_or_signed ?g . ?g rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7349255
P734
Q82799
USER
Who is associated with that person ?
(Q1860,P734,c(Q82799))
action filter_type
action find
entity Q7349255
relation P734
type Q82799
['Q1860', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q82799 . resource:Q7349255 property:P734 ?p }
Robert Rhodes James
action filter_type
action find
entity Robert Rhodes James
relation family name
type name
['English', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:name . resource:Robert_Rhodes_James property:family_name ?p }
[]
name
Q12188082
SYSTEM
James
Q12188082
(Q1860,P734,c(Q82799))
action filter_type
action find
entity Q7349255
relation P734
type Q82799
[ANSWER] is associated with that person
['Q1860', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q82799 . resource:Q7349255 property:P734 ?p }
James
James is associated with that person
James
action filter_type
action find
entity Robert Rhodes James
relation family name
type name
['English', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:name . resource:Robert_Rhodes_James property:family_name ?p }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q56061 Q151885 Q82799
USER
Which names are named after atleast 1 administrative territories and concepts ?
(c(Q82799),P138,c(Q56061)|c(Q151885))
action atleast
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q151885
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?h WHERE { VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q151885 ) } . ?y rdf:type ?n } GROUP BY ?h } . FILTER ( ?b >= 1 ) }
action atleast
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type concept
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'concept'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?h WHERE { VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:concept ) } . ?y rdf:type ?n } GROUP BY ?h } . FILTER ( ?b >= 1 ) }
[]
administrative territorial entity concept name
Q22922124 Q16877784 Q13626156
SYSTEM
von Mecklenburg-Schwerin, Napoli, Ackermann
Q23688105 Q13626156 Q22922124 Q16877784
(c(Q82799),P138,c(Q56061)|c(Q151885))
action atleast
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q151885
value 1
[ANSWERS] are named after atleast 1 administrative territories and concepts
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?h WHERE { VALUES ( ?n ) { ( ontology:Q56061 ) ( ontology:Q151885 ) } . ?y rdf:type ?n } GROUP BY ?h } . FILTER ( ?b >= 1 ) }
de Bragança Ackermann von Mecklenburg-Schwerin Napoli
Von Mecklenburg-Schwerin, Napoli and Ackermann are named after atleast 1 administrative territories and concepts
von Mecklenburg-Schwerin Napoli Ackermann
action atleast
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type concept
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'concept'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?h WHERE { VALUES ( ?n ) { ( ontology:administrative_territorial_entity ) ( ontology:concept ) } . ?y rdf:type ?n } GROUP BY ?h } . FILTER ( ?b >= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P282
Q9779 Q8192 Q34770
USER
How many languages have writing system as exactly 1 alphabets and writing systems ?
(c(Q34770),P282,c(Q9779)|c(Q8192))
action count
action equal
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
value 1
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?v ) WHERE { { ?e property:P282 ?a . ?e rdf:type ontology:Q34770 . ?a rdf:type ontology:Q8192 } UNION { ?e property:P282 ?a . ?e rdf:type ontology:Q34770 . ?a rdf:type ontology:Q9779 } } GROUP BY ?e } . FILTER ( ?v = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?v ) WHERE { { ?e property:writing_system ?a . ?e rdf:type ontology:language . ?a rdf:type ontology:writing_system } UNION { ?e property:writing_system ?a . ?e rdf:type ontology:language . ?a rdf:type ontology:alphabet } } GROUP BY ?e } . FILTER ( ?v = 1 ) }
[]
alphabet writing system language
SYSTEM
8
Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q9779)|c(Q8192))
action count
action equal
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q8192
value 1
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q8192'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?v ) WHERE { { ?e property:P282 ?a . ?e rdf:type ontology:Q34770 . ?a rdf:type ontology:Q8192 } UNION { ?e property:P282 ?a . ?e rdf:type ontology:Q34770 . ?a rdf:type ontology:Q9779 } } GROUP BY ?e } . FILTER ( ?v = 1 ) }
Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
8
action count
action equal
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type writing system
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'writing system'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?c ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?v ) WHERE { { ?e property:writing_system ?a . ?e rdf:type ontology:language . ?a rdf:type ontology:writing_system } UNION { ?e property:writing_system ?a . ?e rdf:type ontology:language . ?a rdf:type ontology:alphabet } } GROUP BY ?e } . FILTER ( ?v = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16877784
P495
Q15617994
USER
Which administrative territory is the origin of Napoli ?
(Q16877784,P495,c(Q15617994))
action filter_type
action find
entity Q16877784
relation P495
type Q15617994
['Q16877784', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q16877784 property:P495 ?w . ?w rdf:type ontology:Q15617994 }
Napoli
action filter_type
action find
entity Napoli
relation country of origin
type designation for an administrative territorial entity
['Napoli', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Napoli property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q16877784,P495,c(Q15617994))
action filter_type
action find
entity Q16877784
relation P495
type Q15617994
[ANSWER] is the origin of Napoli
['Q16877784', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q16877784 property:P495 ?w . ?w rdf:type ontology:Q15617994 }
Italy
Italy is the origin of Napoli
Italy
action filter_type
action find
entity Napoli
relation country of origin
type designation for an administrative territorial entity
['Napoli', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Napoli property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16877784
P407
Q34770
USER
Which language is Napoli in ?
(Q16877784,P407,c(Q34770))
action filter_type
action find
entity Q16877784
relation P407
type Q34770
['Q16877784', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q34770 . resource:Q16877784 property:P407 ?w }
Napoli
action filter_type
action find
entity Napoli
relation language of work or name
type language
['Napoli', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:language . resource:Napoli property:language_of_work_or_name ?w }
[]
language
Q652
SYSTEM
Italian
Q652
(Q16877784,P407,c(Q34770))
action filter_type
action find
entity Q16877784
relation P407
type Q34770
Napoli is in the [ANSWER]
['Q16877784', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q34770 . resource:Q16877784 property:P407 ?w }
Italian
Napoli is in the Italian
Italian
action filter_type
action find
entity Napoli
relation language of work or name
type language
['Napoli', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:language . resource:Napoli property:language_of_work_or_name ?w }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7968184
Q5962346
USER
And what about Wantoat language?
(Q7968184,P361,c(Q5962346))
action filter_type
action find
entity Q7968184
relation P361
type Q5962346
['Q7968184', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?f WHERE { resource:Q7968184 property:P361 ?f . ?f rdf:type ontology:Q5962346 }
Wantoat language
action filter_type
action find
entity Wantoat language
relation part of
type classification scheme
['Wantoat language', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?f WHERE { resource:Wantoat_language property:part_of ?f . ?f rdf:type ontology:classification_scheme }
[]
classification scheme
Q34018
SYSTEM
trans–New Guinea languages
Q34018
(Q7968184,P361,c(Q5962346))
action filter_type
action find
entity Q7968184
relation P361
type Q5962346
[ANSWER]
['Q7968184', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?f WHERE { resource:Q7968184 property:P361 ?f . ?f rdf:type ontology:Q5962346 }
trans–New Guinea languages
trans–New Guinea languages
action filter_type
action find
entity Wantoat language
relation part of
type classification scheme
['Wantoat language', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?f WHERE { resource:Wantoat_language property:part_of ?f . ?f rdf:type ontology:classification_scheme }
[]