Simple Question (Direct)
Simple Question
Q20711488
P364
Q34770
USER
Which language was used originally for the creation of Harry Potter and the Cursed Child ?
(Q20711488,P364,c(Q34770))
action filter_type
action find
entity Q20711488
relation P364
type Q34770
['Q20711488', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q20711488 property:P364 ?j . ?j rdf:type ontology:Q34770 }
Harry Potter and the Cursed Child
action filter_type
action find
entity Harry Potter and the Cursed Child
relation original language of work
type language
['Harry Potter and the Cursed Child', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Harry_Potter_and_the_Cursed_Child property:original_language_of_work ?j . ?j rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q20711488,P364,c(Q34770))
action filter_type
action find
entity Q20711488
relation P364
type Q34770
[ANSWER]
['Q20711488', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q20711488 property:P364 ?j . ?j rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Harry Potter and the Cursed Child
relation original language of work
type language
['Harry Potter and the Cursed Child', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Harry_Potter_and_the_Cursed_Child property:original_language_of_work ?j . ?j rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q20711488
P144
Q277759
USER
Which book series is that work of art a fork of ?
(Q1860,P144,c(Q277759))
action filter_type
action find
entity Q20711488
relation P144
type Q277759
['Q1860', 'P144', {'concept': 'Q277759'}]
SELECT DISTINCT ?e WHERE { resource:Q20711488 property:P144 ?e . ?e rdf:type ontology:Q277759 }
Harry Potter and the Cursed Child
action filter_type
action find
entity Harry Potter and the Cursed Child
relation based on
type book series
['English', 'based on', {'concept': 'book series'}]
SELECT DISTINCT ?e WHERE { resource:Harry_Potter_and_the_Cursed_Child property:based_on ?e . ?e rdf:type ontology:book_series }
[]
book series
Q8337
SYSTEM
Harry Potter
Q8337
(Q1860,P144,c(Q277759))
action filter_type
action find
entity Q20711488
relation P144
type Q277759
[ANSWER]
['Q1860', 'P144', {'concept': 'Q277759'}]
SELECT DISTINCT ?e WHERE { resource:Q20711488 property:P144 ?e . ?e rdf:type ontology:Q277759 }
Harry Potter
Harry Potter
action filter_type
action find
entity Harry Potter and the Cursed Child
relation based on
type book series
['English', 'based on', {'concept': 'book series'}]
SELECT DISTINCT ?e WHERE { resource:Harry_Potter_and_the_Cursed_Child property:based_on ?e . ?e rdf:type ontology:book_series }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20711488
P50
Q502895
USER
Who authored Harry Potter and the Cursed Child ?
(Q20711488,P50,c(Q502895))
action filter_type
action find
entity Q20711488
relation P50
type Q502895
['Q20711488', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q20711488 property:P50 ?l }
Harry Potter and the Cursed Child
action filter_type
action find
entity Harry Potter and the Cursed Child
relation author
type common name
['Harry Potter and the Cursed Child', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Harry_Potter_and_the_Cursed_Child property:author ?l }
[]
common name
Q6115483 Q34660 Q6260836
SYSTEM
Jack Thorne, J. K. Rowling, John Tiffany
Q6115483 Q34660 Q6260836
(Q20711488,P50,c(Q502895))
action filter_type
action find
entity Q20711488
relation P50
type Q502895
[ANSWERS]
['Q20711488', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q20711488 property:P50 ?l }
Jack Thorne J. K. Rowling John Tiffany
Jack Thorne J. K. Rowling John Tiffany
action filter_type
action find
entity Harry Potter and the Cursed Child
relation author
type common name
['Harry Potter and the Cursed Child', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Harry_Potter_and_the_Cursed_Child property:author ?l }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5566248
Q502895
USER
And also tell me about Gladiator-At-Law?
(Q5566248,P50,c(Q502895))
action filter_type
action find
entity Q5566248
relation P50
type Q502895
['Q5566248', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q5566248 property:P50 ?b . ?b rdf:type ontology:Q502895 }
Gladiator-At-Law
action filter_type
action find
entity Gladiator-At-Law
relation author
type common name
['Gladiator-At-Law', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Gladiator-At-Law property:author ?b . ?b rdf:type ontology:common_name }
[]
common name
Q376859 Q312641
SYSTEM
Cyril M. Kornbluth, Frederik Pohl
Q376859 Q312641
(Q5566248,P50,c(Q502895))
action filter_type
action find
entity Q5566248
relation P50
type Q502895
[ANSWERS]
['Q5566248', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q5566248 property:P50 ?b . ?b rdf:type ontology:Q502895 }
Cyril M. Kornbluth Frederik Pohl
Cyril M. Kornbluth Frederik Pohl
action filter_type
action find
entity Gladiator-At-Law
relation author
type common name
['Gladiator-At-Law', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Gladiator-At-Law property:author ?b . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q8337
P1441
Q15706911 Q208361
USER
How many fictional objects and locations in Harry Potter are featured in Harry Potter ?
(c(Q15706911),P1441,Q8337) (c(Q208361),P1441,Q8337)
action count
action union
action filter_type
action find_reverse
entity Q8337
relation P1441
type Q15706911
action filter_type
action find_reverse
entity Q8337
relation P1441
type Q208361
[{'concept': 'Q15706911'}, 'P1441', 'Q8337'] [{'concept': 'Q208361'}, 'P1441', 'Q8337']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { ?o property:P1441 resource:Q8337 . ?o rdf:type ontology:Q15706911 } UNION { ?o property:P1441 resource:Q8337 . ?o rdf:type ontology:Q208361 } }
Harry Potter
action count
action union
action filter_type
action find_reverse
entity Harry Potter
relation present in work
type fictional object
action filter_type
action find_reverse
entity Harry Potter
relation present in work
type location in Harry Potter
[{'concept': 'fictional object'}, 'present in work', 'Harry Potter'] [{'concept': 'location in Harry Potter'}, 'present in work', 'Harry Potter']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { ?o property:present_in_work resource:Harry_Potter . ?o rdf:type ontology:fictional_object } UNION { ?o property:present_in_work resource:Harry_Potter . ?o rdf:type ontology:location_in_Harry_Potter } }
[]
fictional object location in Harry Potter
SYSTEM
1 fictional objects and 12 locations in Harry Potter
Q6130553 Q1951222 Q715509 Q2121180 Q15299049 Q1878601 Q834374 Q3069105 Q2481438 Q1321735 Q3288068 Q471890 Q3291833
(c(Q15706911),P1441,Q8337) (c(Q208361),P1441,Q8337)
action count
action union
action filter_type
action find_reverse
entity Q8337
relation P1441
type Q15706911
action filter_type
action find_reverse
entity Q8337
relation P1441
type Q208361
[ANSWER]
[{'concept': 'Q15706911'}, 'P1441', 'Q8337'] [{'concept': 'Q208361'}, 'P1441', 'Q8337']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { ?o property:P1441 resource:Q8337 . ?o rdf:type ontology:Q15706911 } UNION { ?o property:P1441 resource:Q8337 . ?o rdf:type ontology:Q208361 } }
Golden Snitch Platform Nine and Three Quarters Azkaban Great Hall Hogwarts grounds Budleigh Babberton Diagon Alley Owlery Forbidden Forest Chamber of Secrets Godric's Hollow Room of Requirement Death Chamber
1 fictional objects and 12 locations in Harry Potter
action count
action union
action filter_type
action find_reverse
entity Harry Potter
relation present in work
type fictional object
action filter_type
action find_reverse
entity Harry Potter
relation present in work
type location in Harry Potter
[{'concept': 'fictional object'}, 'present in work', 'Harry Potter'] [{'concept': 'location in Harry Potter'}, 'present in work', 'Harry Potter']
SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { ?o property:present_in_work resource:Harry_Potter . ?o rdf:type ontology:fictional_object } UNION { ?o property:present_in_work resource:Harry_Potter . ?o rdf:type ontology:location_in_Harry_Potter } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q575345
P58
Q838948
USER
Which work of art has Alan Dean Foster as screenwriter ?
(c(Q838948),P58,Q575345)
action filter_type
action find_reverse
entity Q575345
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q575345']
SELECT DISTINCT ?o WHERE { ?o property:P58 resource:Q575345 . ?o rdf:type ontology:Q838948 }
Alan Dean Foster
action filter_type
action find_reverse
entity Alan Dean Foster
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Alan Dean Foster']
SELECT DISTINCT ?o WHERE { ?o property:screenwriter resource:Alan_Dean_Foster . ?o rdf:type ontology:work_of_art }
[]
work of art
Q107940
SYSTEM
Star Trek: The Motion Picture
Q107940
(c(Q838948),P58,Q575345)
action filter_type
action find_reverse
entity Q575345
relation P58
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q575345']
SELECT DISTINCT ?o WHERE { ?o property:P58 resource:Q575345 . ?o rdf:type ontology:Q838948 }
Star Trek: The Motion Picture
Star Trek: The Motion Picture
action filter_type
action find_reverse
entity Alan Dean Foster
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Alan Dean Foster']
SELECT DISTINCT ?o WHERE { ?o property:screenwriter resource:Alan_Dean_Foster . ?o rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q575345
P1412
Q34770
USER
Which language can that person read ?
(Q107940,P1412,c(Q34770))
action filter_type
action find
entity Q575345
relation P1412
type Q34770
['Q107940', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q575345 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
Alan Dean Foster
action filter_type
action find
entity Alan Dean Foster
relation languages spoken, written or signed
type language
['Star Trek: The Motion Picture', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Alan_Dean_Foster property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q107940,P1412,c(Q34770))
action filter_type
action find
entity Q575345
relation P1412
type Q34770
[ANSWER]
['Q107940', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q575345 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Alan Dean Foster
relation languages spoken, written or signed
type language
['Star Trek: The Motion Picture', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Alan_Dean_Foster property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q5329170 Q36355
P361
Q5962346
USER
Is that language a component of Anglo-Frisian languages and Otomi language ?
(Q1860,P361,Q5329170) (Q1860,P361,Q36355)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q36355
relation P361
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q36355']
ASK WHERE { resource:Q1860 property:P361 resource:Q36355 . resource:Q1860 property:P361 resource:Q5329170 }
English Anglo-Frisian languages Otomi language
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity Otomi language
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'Otomi language']
ASK WHERE { resource:English property:part_of resource:Otomi_language . resource:English property:part_of resource:Anglo-Frisian_languages }
[]
classification scheme
SYSTEM
YES and NO respectively
(Q1860,P361,Q5329170) (Q1860,P361,Q36355)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q36355
relation P361
[ANSWER]
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q36355']
ASK WHERE { resource:Q1860 property:P361 resource:Q36355 . resource:Q1860 property:P361 resource:Q5329170 }
YES and NO respectively
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity Otomi language
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'Otomi language']
ASK WHERE { resource:English property:part_of resource:Otomi_language . resource:English property:part_of resource:Anglo-Frisian_languages }
[]