Simple Question (Direct)
Simple Question
Q12411491
P1412
Q34770
USER
What languages do Sh. Shifra speak in ?
(Q12411491,P1412,c(Q34770))
action filter_type
action find
entity Q12411491
relation P1412
type Q34770
['Q12411491', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q12411491 property:P1412 ?h . ?h rdf:type ontology:Q34770 }
Sh. Shifra
action filter_type
action find
entity Sh. Shifra
relation languages spoken, written or signed
type language
['Sh. Shifra', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Sh._Shifra property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language }
[]
language
Q36790 Q946997
SYSTEM
Sumerian, Babylonian
Q36790 Q946997
(Q12411491,P1412,c(Q34770))
action filter_type
action find
entity Q12411491
relation P1412
type Q34770
Shifra speak in the [ANSWERS]
['Q12411491', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q12411491 property:P1412 ?h . ?h rdf:type ontology:Q34770 }
Sumerian Babylonian
Shifra speak in the Sumerian and Babylonian
Sumerian Babylonian
action filter_type
action find
entity Sh. Shifra
relation languages spoken, written or signed
type language
['Sh. Shifra', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Sh._Shifra property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12411491
P21
Q290
USER
What is the sex of Sh. Shifra ?
(Q12411491,P21,c(Q290))
action filter_type
action find
entity Q12411491
relation P21
type Q290
['Q12411491', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q12411491 property:P21 ?n . ?n rdf:type ontology:Q290 }
Sh. Shifra
action filter_type
action find
entity Sh. Shifra
relation gender
type sex
['Sh. Shifra', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Sh._Shifra property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q12411491,P21,c(Q290))
action filter_type
action find
entity Q12411491
relation P21
type Q290
[ANSWER] . the sex of Sh is
['Q12411491', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q12411491 property:P21 ?n . ?n rdf:type ontology:Q290 }
female
Female . the sex of Sh is
female
action filter_type
action find
entity Sh. Shifra
relation gender
type sex
['Sh. Shifra', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Sh._Shifra property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4706579
Q290
USER
And also tell me about Alan Eggleston?
(Q4706579,P21,c(Q290))
action filter_type
action find
entity Q4706579
relation P21
type Q290
['Q4706579', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q4706579 property:P21 ?j . ?j rdf:type ontology:Q290 }
Alan Eggleston
action filter_type
action find
entity Alan Eggleston
relation gender
type sex
['Alan Eggleston', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Alan_Eggleston property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4706579,P21,c(Q290))
action filter_type
action find
entity Q4706579
relation P21
type Q290
[ANSWER]
['Q4706579', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q4706579 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Alan Eggleston
relation gender
type sex
['Alan Eggleston', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Alan_Eggleston property:gender ?j . ?j rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q5088783
P21
Q502895
USER
Does Chea Cheapoo have the gender as that sex ?
(Q5088783,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q5088783
relation P21
['Q5088783', 'P21', 'Q6581097']
ASK WHERE { resource:Q5088783 property:P21 resource:Q6581097 }
male Chea Cheapoo
action is_in
entity male
action find
entity Chea Cheapoo
relation gender
['Chea Cheapoo', 'gender', 'male']
ASK WHERE { resource:Chea_Cheapoo property:gender resource:male }
[]
common name
SYSTEM
YES
(Q5088783,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q5088783
relation P21
[ANSWER]
['Q5088783', 'P21', 'Q6581097']
ASK WHERE { resource:Q5088783 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Chea Cheapoo
relation gender
['Chea Cheapoo', 'gender', 'male']
ASK WHERE { resource:Chea_Cheapoo property:gender resource:male }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P364
Q34770 Q15416 Q21114848
USER
Which languages are the original languages of creation of exactly 1 television programs or magazine genres ?
(c(Q15416)|c(Q21114848),P364,c(Q34770))
action equal
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q21114848
value 1
[[{'concept': 'Q15416'}, {'concept': 'Q21114848'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?z WHERE { { ?f property:P364 ?z . ?f rdf:type ontology:Q15416 . ?z rdf:type ontology:Q34770 } UNION { ?f property:P364 ?z . ?z rdf:type ontology:Q34770 . ?f rdf:type ontology:Q21114848 } } GROUP BY ?z } . FILTER ( ?u = 1 ) }
action equal
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 magazine genre
value 1
[[{'concept': 'television program'}, {'concept': 'magazine genre'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?z WHERE { { ?f property:original_language_of_work ?z . ?f rdf:type ontology:television_program . ?z rdf:type ontology:language } UNION { ?f property:original_language_of_work ?z . ?z rdf:type ontology:language . ?f rdf:type ontology:magazine_genre } } GROUP BY ?z } . FILTER ( ?u = 1 ) }
[]
language television program magazine genre
Q397 Q8752 Q3110592
SYSTEM
Latin, Basque, written Chinese
Q397 Q8752 Q3110592
(c(Q15416)|c(Q21114848),P364,c(Q34770))
action equal
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q21114848
value 1
[ANSWERS] are the original languages of creation of exactly 1 television programs or magazine genres
[[{'concept': 'Q15416'}, {'concept': 'Q21114848'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?z WHERE { { ?f property:P364 ?z . ?f rdf:type ontology:Q15416 . ?z rdf:type ontology:Q34770 } UNION { ?f property:P364 ?z . ?z rdf:type ontology:Q34770 . ?f rdf:type ontology:Q21114848 } } GROUP BY ?z } . FILTER ( ?u = 1 ) }
Latin Basque written Chinese
Latin, Basque and written Chinese are the original languages of creation of exactly 1 television programs or magazine genres
Latin Basque written Chinese
action equal
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 magazine genre
value 1
[[{'concept': 'television program'}, {'concept': 'magazine genre'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) ?z WHERE { { ?f property:original_language_of_work ?z . ?f rdf:type ontology:television_program . ?z rdf:type ontology:language } UNION { ?f property:original_language_of_work ?z . ?z rdf:type ontology:language . ?f rdf:type ontology:magazine_genre } } GROUP BY ?z } . FILTER ( ?u = 1 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q397 Q8752 Q3110592
P364
Q838948
USER
Which works of art are known to be originally created in Latin, Basque and written Chinese language ?
(c(Q838948),P364,Q397) (c(Q838948),P364,Q8752) (c(Q838948),P364,Q3110592)
action union
action filter_type
action find_reverse
entity Q397
relation P364
type Q838948
action filter_type
action find_reverse
entity Q8752
relation P364
type Q838948
action filter_type
action find_reverse
entity Q3110592
relation P364
type Q838948
[{'concept': 'Q838948'}, 'P364', 'Q397'] [{'concept': 'Q838948'}, 'P364', 'Q8752'] [{'concept': 'Q838948'}, 'P364', 'Q3110592']
SELECT DISTINCT ?x WHERE { ?x property:P364 ?g . VALUES ( ?g ) { ( resource:Q397 ) ( resource:Q8752 ) } }
Latin Basque written Chinese
action union
action filter_type
action find_reverse
entity Latin
relation original language of work
type work of art
action filter_type
action find_reverse
entity Basque
relation original language of work
type work of art
action filter_type
action find_reverse
entity written Chinese
relation original language of work
type work of art
[{'concept': 'work of art'}, 'original language of work', 'Latin'] [{'concept': 'work of art'}, 'original language of work', 'Basque'] [{'concept': 'work of art'}, 'original language of work', 'written Chinese']
SELECT DISTINCT ?x WHERE { ?x property:original_language_of_work ?g . VALUES ( ?g ) { ( resource:Latin ) ( resource:Basque ) } }
[]
work of art
Q1421902 Q1660701 Q51668
SYSTEM
Alatriste, The Shoes of the Fisherman, The Passion of the Christ
Q972143 Q217189 Q51668 Q777435 Q1088489 Q3332727 Q1660701 Q1233645 Q3990982 Q646990 Q25043 Q661422 Q1421902 Q767801 Q19685580 Q26831128 Q16516111 Q18641762 Q22668326 Q26761852 Q15909152
(c(Q838948),P364,Q397) (c(Q838948),P364,Q8752) (c(Q838948),P364,Q3110592)
action union
action filter_type
action find_reverse
entity Q397
relation P364
type Q838948
action filter_type
action find_reverse
entity Q8752
relation P364
type Q838948
action filter_type
action find_reverse
entity Q3110592
relation P364
type Q838948
[ANSWERS] are known to be originally created in Latin, Basque and written Chinese language
[{'concept': 'Q838948'}, 'P364', 'Q397'] [{'concept': 'Q838948'}, 'P364', 'Q8752'] [{'concept': 'Q838948'}, 'P364', 'Q3110592']
SELECT DISTINCT ?x WHERE { ?x property:P364 ?g . VALUES ( ?g ) { ( resource:Q397 ) ( resource:Q8752 ) } }
Oedipus The Seventh Seal The Passion of the Christ Phaedra Sebastiane Medea The Shoes of the Fisherman Andria Thyestes Octavia Monty Python and the Holy Grail Don't Tempt Me Alatriste Cantata academica Lasa eta Zabala Baskavígin, the Slaying of Basque Whalers Amaren eskuak Loreak Yoko & his friends Igelak Fire and Rain
Alatriste, The Shoes of the Fisherman and The Passion of the Christ are known to be originally created in Latin, Basque and written Chinese language
Alatriste The Shoes of the Fisherman The Passion of the Christ
action union
action filter_type
action find_reverse
entity Latin
relation original language of work
type work of art
action filter_type
action find_reverse
entity Basque
relation original language of work
type work of art
action filter_type
action find_reverse
entity written Chinese
relation original language of work
type work of art
[{'concept': 'work of art'}, 'original language of work', 'Latin'] [{'concept': 'work of art'}, 'original language of work', 'Basque'] [{'concept': 'work of art'}, 'original language of work', 'written Chinese']
SELECT DISTINCT ?x WHERE { ?x property:original_language_of_work ?g . VALUES ( ?g ) { ( resource:Latin ) ( resource:Basque ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36790
P407
Q234460
USER
Which text is composed in Sumerian ?
(c(Q234460),P407,Q36790)
action filter_type
action find_reverse
entity Q36790
relation P407
type Q234460
[{'concept': 'Q234460'}, 'P407', 'Q36790']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q234460 . ?a property:P407 resource:Q36790 }
Sumerian
action filter_type
action find_reverse
entity Sumerian
relation language of work or name
type text
[{'concept': 'text'}, 'language of work or name', 'Sumerian']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:text . ?a property:language_of_work_or_name resource:Sumerian }
[]
text
Q5614563
SYSTEM
Gudea cylinders
Q5614563
(c(Q234460),P407,Q36790)
action filter_type
action find_reverse
entity Q36790
relation P407
type Q234460
[ANSWER] is composed in Sumerian
[{'concept': 'Q234460'}, 'P407', 'Q36790']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q234460 . ?a property:P407 resource:Q36790 }
Gudea cylinders
Gudea cylinders is composed in Sumerian
Gudea cylinders
action filter_type
action find_reverse
entity Sumerian
relation language of work or name
type text
[{'concept': 'text'}, 'language of work or name', 'Sumerian']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:text . ?a property:language_of_work_or_name resource:Sumerian }
[]