Simple Question (Direct)
Simple Question
Q188093
P800
Q7725634
USER
What notable work was done by Langston Hughes ?
(Q188093,P800,c(Q7725634))
action filter_type
action find
entity Q188093
relation P800
type Q7725634
['Q188093', 'P800', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { resource:Q188093 property:P800 ?z . ?z rdf:type ontology:Q7725634 }
Langston Hughes
action filter_type
action find
entity Langston Hughes
relation notable work
type literary work
['Langston Hughes', 'notable work', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { resource:Langston_Hughes property:notable_work ?z . ?z rdf:type ontology:literary_work }
[]
literary work
Q7753374
SYSTEM
The Negro Speaks of Rivers
Q7753374
(Q188093,P800,c(Q7725634))
action filter_type
action find
entity Q188093
relation P800
type Q7725634
[ANSWER] was done by Langston Hughes
['Q188093', 'P800', {'concept': 'Q7725634'}]
SELECT DISTINCT ?z WHERE { resource:Q188093 property:P800 ?z . ?z rdf:type ontology:Q7725634 }
The Negro Speaks of Rivers
The Negro Speaks of Rivers was done by Langston Hughes
The Negro Speaks of Rivers
action filter_type
action find
entity Langston Hughes
relation notable work
type literary work
['Langston Hughes', 'notable work', {'concept': 'literary work'}]
SELECT DISTINCT ?z WHERE { resource:Langston_Hughes property:notable_work ?z . ?z rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7753374
P170
Q502895
USER
Which person is credited with creation of that literary work ?
(Q7753374,P170,c(Q502895))
action filter_type
action find
entity Q7753374
relation P170
type Q502895
['Q7753374', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q7753374 property:P170 ?q . ?q rdf:type ontology:Q502895 }
The Negro Speaks of Rivers
action filter_type
action find
entity The Negro Speaks of Rivers
relation creator
type common name
['The Negro Speaks of Rivers', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:The_Negro_Speaks_of_Rivers property:creator ?q . ?q rdf:type ontology:common_name }
[]
common name
Q188093
SYSTEM
Langston Hughes
Q188093
(Q7753374,P170,c(Q502895))
action filter_type
action find
entity Q7753374
relation P170
type Q502895
[ANSWER] is credited with creation of that literary work
['Q7753374', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q7753374 property:P170 ?q . ?q rdf:type ontology:Q502895 }
Langston Hughes
Langston Hughes is credited with creation of that literary work
Langston Hughes
action filter_type
action find
entity The Negro Speaks of Rivers
relation creator
type common name
['The Negro Speaks of Rivers', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:The_Negro_Speaks_of_Rivers property:creator ?q . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q188093 Q1752976
P1412
Q34770
USER
How many languages do Langston Hughes or Wu Ming speak in ?
(Q188093,P1412,c(Q34770)) (Q1752976,P1412,c(Q34770))
action count
action union
action filter_type
action find
entity Q188093
relation P1412
type Q34770
action filter_type
action find
entity Q1752976
relation P1412
type Q34770
['Q188093', 'P1412', {'concept': 'Q34770'}] ['Q1752976', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?w property:P1412 ?n . VALUES ( ?w ) { ( resource:Q188093 ) ( resource:Q1752976 ) } }
Langston Hughes Wu Ming
action count
action union
action filter_type
action find
entity Langston Hughes
relation languages spoken, written or signed
type language
action filter_type
action find
entity Wu Ming
relation languages spoken, written or signed
type language
['Langston Hughes', 'languages spoken, written or signed', {'concept': 'language'}] ['Wu Ming', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?w property:languages_spoken,_written_or_signed ?n . VALUES ( ?w ) { ( resource:Langston_Hughes ) ( resource:Wu_Ming ) } }
[]
language
SYSTEM
2
Q652 Q1860
(Q188093,P1412,c(Q34770)) (Q1752976,P1412,c(Q34770))
action count
action union
action filter_type
action find
entity Q188093
relation P1412
type Q34770
action filter_type
action find
entity Q1752976
relation P1412
type Q34770
[ANSWER]
['Q188093', 'P1412', {'concept': 'Q34770'}] ['Q1752976', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?w property:P1412 ?n . VALUES ( ?w ) { ( resource:Q188093 ) ( resource:Q1752976 ) } }
Italian English
2
action count
action union
action filter_type
action find
entity Langston Hughes
relation languages spoken, written or signed
type language
action filter_type
action find
entity Wu Ming
relation languages spoken, written or signed
type language
['Langston Hughes', 'languages spoken, written or signed', {'concept': 'language'}] ['Wu Ming', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?w property:languages_spoken,_written_or_signed ?n . VALUES ( ?w ) { ( resource:Langston_Hughes ) ( resource:Wu_Ming ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 3510 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3510
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?a = 3510 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3510
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?a = 3510 ) }
[]
musical instrument common name
Q8355 Q1444 Q128309
SYSTEM
violin, organ, drum kit
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3510
[ANSWERS] are played by approximately 3510 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P1303 ?w . ?w rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?w } . FILTER ( ?a = 3510 ) }
violin organ drum kit
Violin, organ and drum kit are played by approximately 3510 people
violin organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3510
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:instrument ?w . ?w rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?w } . FILTER ( ?a = 3510 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1444
P1056
Q43229
USER
Who manufactures that musical instrument ?
(c(Q43229),P1056,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P1056
type Q43229
[{'concept': 'Q43229'}, 'P1056', 'Q1444']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q43229 . ?b property:P1056 resource:Q1444 }
organ
action filter_type
action find_reverse
entity organ
relation product
type organization
[{'concept': 'organization'}, 'product', 'organ']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:organization . ?b property:product resource:organ }
[]
organization
Clarification for simple ques.
Q128309
SYSTEM
Did you mean drum kit ?
Q8355 Q1444 Q128309
(c(Q43229),P1056,Q8355) (c(Q43229),P1056,Q1444) (c(Q43229),P1056,Q128309)
[ANSWER]
[{'concept': 'Q43229'}, 'P1056', 'Q8355'] [{'concept': 'Q43229'}, 'P1056', 'Q1444'] [{'concept': 'Q43229'}, 'P1056', 'Q128309']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q43229 . ?b property:P1056 resource:Q1444 }
violin organ drum kit
Did you mean drum kit ?
drum kit
[{'concept': 'organization'}, 'product', 'violin'] [{'concept': 'organization'}, 'product', 'organ'] [{'concept': 'organization'}, 'product', 'drum kit']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:organization . ?b property:product resource:organ }
[]
Simple Question (Coreferenced)
USER
No, I meant organ. Could you tell me the answer for that?
(c(Q43229),P1056,Q1444)
Q1444
[{'concept': 'Q43229'}, 'P1056', 'Q1444']
[{'concept': 'organization'}, 'product', 'organ']
[]
Q694082
SYSTEM
Marcussen & Søn
Q694082
(c(Q43229),P1056,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P1056
type Q43229
[ANSWER] manufactures that musical instrument
[{'concept': 'Q43229'}, 'P1056', 'Q1444']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q43229 . ?b property:P1056 resource:Q1444 }
Marcussen & Søn
Marcussen & Søn manufactures that musical instrument
Marcussen & Søn
action filter_type
action find_reverse
entity organ
relation product
type organization
[{'concept': 'organization'}, 'product', 'organ']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:organization . ?b property:product resource:organ }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q188093
P734
Q82799
USER
Who has the surname Langston Hughes ?
(Q188093,P734,c(Q82799))
action filter_type
action find
entity Q188093
relation P734
type Q82799
['Q188093', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q188093 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Langston Hughes
action filter_type
action find
entity Langston Hughes
relation family name
type name
['Langston Hughes', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Langston_Hughes property:family_name ?s . ?s rdf:type ontology:name }
[]
name
Q2720749
SYSTEM
Hughes
Q2720749
(Q188093,P734,c(Q82799))
action filter_type
action find
entity Q188093
relation P734
type Q82799
[ANSWER] has the surname Langston [ANSWER]
['Q188093', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q188093 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Hughes
Hughes has the surname Langston Hughes
Hughes
action filter_type
action find
entity Langston Hughes
relation family name
type name
['Langston Hughes', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Langston_Hughes property:family_name ?s . ?s rdf:type ontology:name }
[]