Simple Question (Direct)
Simple Question
Q5083069
P39
Q12737077
USER
Which occupation was a position held by Charles Tyrrell Giles ?
(Q5083069,P39,c(Q12737077))
action filter_type
action find
entity Q5083069
relation P39
type Q12737077
['Q5083069', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q5083069 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Charles Tyrrell Giles
action filter_type
action find
entity Charles Tyrrell Giles
relation position held
type occupation
['Charles Tyrrell Giles', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Charles_Tyrrell_Giles property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q5083069,P39,c(Q12737077))
action filter_type
action find
entity Q5083069
relation P39
type Q12737077
The [ANSWER] was a position held by Charles Tyrrell Giles
['Q5083069', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q5083069 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
The Member of Parliament in the United Kingdom was a position held by Charles Tyrrell Giles
Member of Parliament in the United Kingdom
action filter_type
action find
entity Charles Tyrrell Giles
relation position held
type occupation
['Charles Tyrrell Giles', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Charles_Tyrrell_Giles property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5083069
P1412
Q34770
USER
Which language can that person understand ?
(Q16707842,P1412,c(Q34770))
action filter_type
action find
entity Q5083069
relation P1412
type Q34770
['Q16707842', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q5083069 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
Charles Tyrrell Giles
action filter_type
action find
entity Charles Tyrrell Giles
relation languages spoken, written or signed
type language
['Member of Parliament in the United Kingdom', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Charles_Tyrrell_Giles property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16707842,P1412,c(Q34770))
action filter_type
action find
entity Q5083069
relation P1412
type Q34770
That person can understand the [ANSWER]
['Q16707842', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q5083069 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
English
That person can understand the English
English
action filter_type
action find
entity Charles Tyrrell Giles
relation languages spoken, written or signed
type language
['Member of Parliament in the United Kingdom', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Charles_Tyrrell_Giles property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P364
Q34770 Q15416 Q838948
USER
Which languages are the original languages of creation of min number of television programs and works of art ?
(c(Q15416)|c(Q838948),P364,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?l WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } GROUP BY ?l } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) ?o WHERE { { ?u property:P364 ?o . ?o rdf:type ontology:Q34770 . ?u rdf:type ontology:Q838948 } UNION { ?u property:P364 ?o . ?u rdf:type ontology:Q15416 . ?o rdf:type ontology:Q34770 } } GROUP BY ?o } } }
action argmin
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?l WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:television_program ) ( ontology:work_of_art ) } } GROUP BY ?l } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) ?o WHERE { { ?u property:original_language_of_work ?o . ?o rdf:type ontology:language . ?u rdf:type ontology:work_of_art } UNION { ?u property:original_language_of_work ?o . ?u rdf:type ontology:television_program . ?o rdf:type ontology:language } } GROUP BY ?o } } }
[]
language television program work of art
Q56530 Q182695 Q35499
SYSTEM
Wappo language, Late Old Japanese, Old Church Slavonic
Q132659 Q13414913 Q13211 Q35499 Q35668 Q1072111 Q34909 Q36765 Q33251 Q18130932 Q35726 Q36206 Q33976 Q37041 Q35505 Q25167 Q56530 Q25164 Q36790 Q29977 Q182695 Q837985 Q783605
(c(Q15416)|c(Q838948),P364,c(Q34770))
action argmin
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q838948
[ANSWERS] are the original languages of creation of min number of television programs and works of art
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?l WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } GROUP BY ?l } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) ?o WHERE { { ?u property:P364 ?o . ?o rdf:type ontology:Q34770 . ?u rdf:type ontology:Q838948 } UNION { ?u property:P364 ?o . ?u rdf:type ontology:Q15416 . ?o rdf:type ontology:Q34770 } } GROUP BY ?o } } }
Egyptian hieroglyphs Simplified Chinese Ruthenian Old Church Slavonic Hittite Galician-Portuguese Old Icelandic Demotic Church Slavonic Traditional Chinese Etruscan Lak Sardinian language classical Chinese Old Norse language Bokmål Wappo language Nynorsk Sumerian Gaulish Late Old Japanese Middle High German Written vernacular Chinese
Wappo language, Late Old Japanese and Old Church Slavonic are the original languages of creation of min number of television programs and works of art
Wappo language Late Old Japanese Old Church Slavonic
action argmin
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?l WHERE { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:television_program ) ( ontology:work_of_art ) } } GROUP BY ?l } . FILTER ( ?x = ?j ) . { SELECT DISTINCT ( MIN ( ?i ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) ?o WHERE { { ?u property:original_language_of_work ?o . ?o rdf:type ontology:language . ?u rdf:type ontology:work_of_art } UNION { ?u property:original_language_of_work ?o . ?u rdf:type ontology:television_program . ?o rdf:type ontology:language } } GROUP BY ?o } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q56530
P172
Q2472587
USER
What is the race of that language ?
(Q56530,P172,c(Q2472587))
action filter_type
action find
entity Q56530
relation P172
type Q2472587
['Q56530', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?a WHERE { resource:Q56530 property:P172 ?a . ?a rdf:type ontology:Q2472587 }
Wappo language
action filter_type
action find
entity Wappo language
relation ethnic group
type people
['Wappo language', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?a WHERE { resource:Wappo_language property:ethnic_group ?a . ?a rdf:type ontology:people }
[]
people
Clarification for simple ques.
Q182695
SYSTEM
Did you mean Late Old Japanese ?
Q56530 Q182695 Q35499
(Q56530,P172,c(Q2472587)) (Q182695,P172,c(Q2472587)) (Q35499,P172,c(Q2472587))
[ANSWER]
['Q56530', 'P172', {'concept': 'Q2472587'}] ['Q182695', 'P172', {'concept': 'Q2472587'}] ['Q35499', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?a WHERE { resource:Q56530 property:P172 ?a . ?a rdf:type ontology:Q2472587 }
Wappo language Late Old Japanese Old Church Slavonic
Did you mean Late Old Japanese ?
Late Old Japanese
['Wappo language', 'ethnic group', {'concept': 'people'}] ['Late Old Japanese', 'ethnic group', {'concept': 'people'}] ['Old Church Slavonic', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?a WHERE { resource:Wappo_language property:ethnic_group ?a . ?a rdf:type ontology:people }
[]
Simple Question (Coreferenced)
USER
No, I meant Wappo language. Could you tell me the answer for that?
(Q56530,P172,c(Q2472587))
Q56530
['Q56530', 'P172', {'concept': 'Q2472587'}]
['Wappo language', 'ethnic group', {'concept': 'people'}]
[]
Q2031854
SYSTEM
Wappo people
Q2031854
(Q56530,P172,c(Q2472587))
action filter_type
action find
entity Q56530
relation P172
type Q2472587
The race of that language is the [ANSWER]
['Q56530', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?a WHERE { resource:Q56530 property:P172 ?a . ?a rdf:type ontology:Q2472587 }
Wappo people
The race of that language is the Wappo people
Wappo people
action filter_type
action find
entity Wappo language
relation ethnic group
type people
['Wappo language', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?a WHERE { resource:Wappo_language property:ethnic_group ?a . ?a rdf:type ontology:people }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2031854 Q56530
P364
Q34770
USER
Is Wappo language the original language of creation of Wappo people ?
(Q2031854,P364,Q56530)
action is_in
entity Q56530
action find
entity Q2031854
relation P364
['Q2031854', 'P364', 'Q56530']
ASK WHERE { resource:Q2031854 property:P364 resource:Q56530 }
Wappo people Wappo language
action is_in
entity Wappo language
action find
entity Wappo people
relation original language of work
['Wappo people', 'original language of work', 'Wappo language']
ASK WHERE { resource:Wappo_people property:original_language_of_work resource:Wappo_language }
[]
language
SYSTEM
YES
(Q2031854,P364,Q56530)
action is_in
entity Q56530
action find
entity Q2031854
relation P364
[ANSWER]
['Q2031854', 'P364', 'Q56530']
ASK WHERE { resource:Q2031854 property:P364 resource:Q56530 }
Yes
action is_in
entity Wappo language
action find
entity Wappo people
relation original language of work
['Wappo people', 'original language of work', 'Wappo language']
ASK WHERE { resource:Wappo_people property:original_language_of_work resource:Wappo_language }
[]