Simple Question (Direct)
Simple Question
Q947170
P735
Q82799
USER
Which name is Troy Perkins known by ?
(Q947170,P735,c(Q82799))
action filter_type
action find
entity Q947170
relation P735
type Q82799
['Q947170', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q947170 property:P735 ?v . ?v rdf:type ontology:Q82799 }
Troy Perkins
action filter_type
action find
entity Troy Perkins
relation given name
type name
['Troy Perkins', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Troy_Perkins property:given_name ?v . ?v rdf:type ontology:name }
[]
name
Q1158289
SYSTEM
Troy
Q1158289
(Q947170,P735,c(Q82799))
action filter_type
action find
entity Q947170
relation P735
type Q82799
[ANSWER] Perkins is known as [ANSWER]
['Q947170', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?v WHERE { resource:Q947170 property:P735 ?v . ?v rdf:type ontology:Q82799 }
Troy
Troy Perkins is known as Troy
Troy
action filter_type
action find
entity Troy Perkins
relation given name
type name
['Troy Perkins', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?v WHERE { resource:Troy_Perkins property:given_name ?v . ?v rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1158289
P1533
Q82799
USER
Which name is same as that one ?
(Q1158289,P1533,c(Q82799))
action filter_type
action find
entity Q1158289
relation P1533
type Q82799
['Q1158289', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q82799 . resource:Q1158289 property:P1533 ?k }
Troy
action filter_type
action find
entity Troy
relation family name identical to this first name
type name
['Troy', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:name . resource:Troy property:family_name_identical_to_this_first_name ?k }
[]
name
Q20727180
SYSTEM
Troy
Q20727180
(Q1158289,P1533,c(Q82799))
action filter_type
action find
entity Q1158289
relation P1533
type Q82799
[ANSWER] is same as that one
['Q1158289', 'P1533', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q82799 . resource:Q1158289 property:P1533 ?k }
Troy
Troy is same as that one
Troy
action filter_type
action find
entity Troy
relation family name identical to this first name
type name
['Troy', 'family name identical to this first name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:name . resource:Troy property:family_name_identical_to_this_first_name ?k }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q19689338 Q1158289
P1533
Q82799
USER
Or Blažej?
OR((Q1158289,P1533,c(Q82799)), (Q19689338,P1533,c(Q82799)))
action filter_type
action union
action find
entity Q1158289
relation P1533
action find
entity Q19689338
relation P1533
type Q82799
{'OR': [['Q1158289', 'P1533', {'concept': 'Q82799'}], ['Q19689338', 'P1533', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q19689338 property:P1533 ?x } UNION { resource:Q1158289 property:P1533 ?x } } . ?x rdf:type ontology:Q82799 }
Blažej Troy
action filter_type
action union
action find
entity Troy
relation family name identical to this first name
action find
entity Blažej
relation family name identical to this first name
type name
{'OR': [['Troy', 'family name identical to this first name', {'concept': 'name'}], ['Blažej', 'family name identical to this first name', {'concept': 'name'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Blažej property:family_name_identical_to_this_first_name ?x } UNION { resource:Troy property:family_name_identical_to_this_first_name ?x } } . ?x rdf:type ontology:name }
[]
name
Q11159258 Q20727180
SYSTEM
Blažej, Troy
Q11159258 Q20727180
OR((Q1158289,P1533,c(Q82799)), (Q19689338,P1533,c(Q82799)))
action filter_type
action union
action find
entity Q1158289
relation P1533
action find
entity Q19689338
relation P1533
type Q82799
[ANSWERS]
{'OR': [['Q1158289', 'P1533', {'concept': 'Q82799'}], ['Q19689338', 'P1533', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q19689338 property:P1533 ?x } UNION { resource:Q1158289 property:P1533 ?x } } . ?x rdf:type ontology:Q82799 }
Blažej Troy
Blažej Troy
action filter_type
action union
action find
entity Troy
relation family name identical to this first name
action find
entity Blažej
relation family name identical to this first name
type name
{'OR': [['Troy', 'family name identical to this first name', {'concept': 'name'}], ['Blažej', 'family name identical to this first name', {'concept': 'name'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Blažej property:family_name_identical_to_this_first_name ?x } UNION { resource:Troy property:family_name_identical_to_this_first_name ?x } } . ?x rdf:type ontology:name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20727180
P734
Q502895
USER
Whose family name are that one ?
(c(Q502895),P734,Q20727180)
action filter_type
action find_reverse
entity Q20727180
relation P734
type Q502895
[{'concept': 'Q502895'}, 'P734', 'Q20727180']
SELECT DISTINCT ?y WHERE { ?y property:P734 resource:Q20727180 . ?y rdf:type ontology:Q502895 }
Troy
action filter_type
action find_reverse
entity Troy
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'Troy']
SELECT DISTINCT ?y WHERE { ?y property:family_name resource:Troy . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q20727180
SYSTEM
Did you mean Troy ?
Q11159258 Q20727180
(c(Q502895),P734,Q11159258) (c(Q502895),P734,Q20727180)
[ANSWER]
[{'concept': 'Q502895'}, 'P734', 'Q11159258'] [{'concept': 'Q502895'}, 'P734', 'Q20727180']
SELECT DISTINCT ?y WHERE { ?y property:P734 resource:Q20727180 . ?y rdf:type ontology:Q502895 }
Blažej Troy
Did you mean Troy ?
Troy
[{'concept': 'common name'}, 'family name', 'Blažej'] [{'concept': 'common name'}, 'family name', 'Troy']
SELECT DISTINCT ?y WHERE { ?y property:family_name resource:Troy . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P734,Q20727180)
[{'concept': 'Q502895'}, 'P734', 'Q20727180']
[{'concept': 'common name'}, 'family name', 'Troy']
[]
Q6688982 Q795593 Q5606596
SYSTEM
Louise Troy, Mike Troy, Gregg Troy
Q6688982 Q23768720 Q795593 Q5606596
(c(Q502895),P734,Q20727180)
action filter_type
action find_reverse
entity Q20727180
relation P734
type Q502895
[ANSWERS] are that one
[{'concept': 'Q502895'}, 'P734', 'Q20727180']
SELECT DISTINCT ?y WHERE { ?y property:P734 resource:Q20727180 . ?y rdf:type ontology:Q502895 }
Louise Troy Dave Troy Mike Troy Gregg Troy
Louise Troy, Mike Troy and Gregg Troy are that one
Louise Troy Mike Troy Gregg Troy
action filter_type
action find_reverse
entity Troy
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'Troy']
SELECT DISTINCT ?y WHERE { ?y property:family_name resource:Troy . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q340169 Q17335294
USER
How many names are demonstrated in atleast 3 medias or coats of arms ?
(c(Q340169)|c(Q17335294),P180,c(Q82799))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 3
[[{'concept': 'Q340169'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { FILTER ( ?d >= 3 ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?d ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q340169 ) ( ontology:Q17335294 ) } } GROUP BY ?y } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 3
[[{'concept': 'media'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { FILTER ( ?d >= 3 ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?d ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:media ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?y } }
[]
name media flag or coat of arms
SYSTEM
3
Q5 Q726 Q144
(c(Q340169)|c(Q17335294),P180,c(Q82799))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 3
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { FILTER ( ?d >= 3 ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?d ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q340169 ) ( ontology:Q17335294 ) } } GROUP BY ?y } }
human horse dog
3
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 3
[[{'concept': 'media'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { FILTER ( ?d >= 3 ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?d ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:media ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?y } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1441346
P407
Q34770
USER
What is the language of Francis ?
(Q1441346,P407,c(Q34770))
action filter_type
action find
entity Q1441346
relation P407
type Q34770
['Q1441346', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q34770 . resource:Q1441346 property:P407 ?k }
Francis
action filter_type
action find
entity Francis
relation language of work or name
type language
['Francis', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:language . resource:Francis property:language_of_work_or_name ?k }
[]
language
Q1860
SYSTEM
English
Q1860
(Q1441346,P407,c(Q34770))
action filter_type
action find
entity Q1441346
relation P407
type Q34770
The language of Francis is the [ANSWER]
['Q1441346', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q34770 . resource:Q1441346 property:P407 ?k }
English
The language of Francis is the English
English
action filter_type
action find
entity Francis
relation language of work or name
type language
['Francis', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:language . resource:Francis property:language_of_work_or_name ?k }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17667907
Q34770
USER
And how about Accident at Russian hydroelectric plant kills ten?
(Q17667907,P407,c(Q34770))
action filter_type
action find
entity Q17667907
relation P407
type Q34770
['Q17667907', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q17667907 property:P407 ?b . ?b rdf:type ontology:Q34770 }
Accident at Russian hydroelectric plant kills ten
action filter_type
action find
entity Accident at Russian hydroelectric plant kills ten
relation language of work or name
type language
['Accident at Russian hydroelectric plant kills ten', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Accident_at_Russian_hydroelectric_plant_kills_ten property:language_of_work_or_name ?b . ?b rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q17667907,P407,c(Q34770))
action filter_type
action find
entity Q17667907
relation P407
type Q34770
[ANSWER]
['Q17667907', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q17667907 property:P407 ?b . ?b rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Accident at Russian hydroelectric plant kills ten
relation language of work or name
type language
['Accident at Russian hydroelectric plant kills ten', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Accident_at_Russian_hydroelectric_plant_kills_ten property:language_of_work_or_name ?b . ?b rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q3042994 Q10602167
P361
Q5962346
USER
Is that language a component of Pame language and Nordic hunting spitz ?
(Q1860,P361,Q3042994) (Q1860,P361,Q10602167)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q3042994
relation P361
action find_reverse
entity Q10602167
relation P361
['Q1860', 'P361', 'Q3042994'] ['Q1860', 'P361', 'Q10602167']
ASK WHERE { resource:Q1860 property:P361 resource:Q3042994 . resource:Q1860 property:P361 resource:Q10602167 }
English Pame language Nordic hunting spitz
action is_in
entity English
action intersection
action find_reverse
entity Pame language
relation part of
action find_reverse
entity Nordic hunting spitz
relation part of
['English', 'part of', 'Pame language'] ['English', 'part of', 'Nordic hunting spitz']
ASK WHERE { resource:English property:part_of resource:Pame_language . resource:English property:part_of resource:Nordic_hunting_spitz }
[]
classification scheme
SYSTEM
NO
(Q1860,P361,Q3042994) (Q1860,P361,Q10602167)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q3042994
relation P361
action find_reverse
entity Q10602167
relation P361
[ANSWER]
['Q1860', 'P361', 'Q3042994'] ['Q1860', 'P361', 'Q10602167']
ASK WHERE { resource:Q1860 property:P361 resource:Q3042994 . resource:Q1860 property:P361 resource:Q10602167 }
No
action is_in
entity English
action intersection
action find_reverse
entity Pame language
relation part of
action find_reverse
entity Nordic hunting spitz
relation part of
['English', 'part of', 'Pame language'] ['English', 'part of', 'Nordic hunting spitz']
ASK WHERE { resource:English property:part_of resource:Pame_language . resource:English property:part_of resource:Nordic_hunting_spitz }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6688982
P69
Q163740
USER
Where was Louise Troy educated ?
(Q6688982,P69,c(Q163740))
action filter_type
action find
entity Q6688982
relation P69
type Q163740
['Q6688982', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q163740 . resource:Q6688982 property:P69 ?s }
Louise Troy
action filter_type
action find
entity Louise Troy
relation educated at
type nonprofit organization
['Louise Troy', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:nonprofit_organization . resource:Louise_Troy property:educated_at ?s }
[]
nonprofit organization
Q389336
SYSTEM
American Academy of Dramatic Arts
Q389336
(Q6688982,P69,c(Q163740))
action filter_type
action find
entity Q6688982
relation P69
type Q163740
Louise Troy was educated by [ANSWER]
['Q6688982', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q163740 . resource:Q6688982 property:P69 ?s }
American Academy of Dramatic Arts
Louise Troy was educated by American Academy of Dramatic Arts
American Academy of Dramatic Arts
action filter_type
action find
entity Louise Troy
relation educated at
type nonprofit organization
['Louise Troy', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:nonprofit_organization . resource:Louise_Troy property:educated_at ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6688982
P509
Q2057971
USER
Which health problem was the cause of death of Louise Troy ?
(Q6688982,P509,c(Q2057971))
action filter_type
action find
entity Q6688982
relation P509
type Q2057971
['Q6688982', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { resource:Q6688982 property:P509 ?k . ?k rdf:type ontology:Q2057971 }
Louise Troy
action filter_type
action find
entity Louise Troy
relation cause of death
type health problem
['Louise Troy', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { resource:Louise_Troy property:cause_of_death ?k . ?k rdf:type ontology:health_problem }
[]
health problem
Q128581
SYSTEM
breast cancer
Q128581
(Q6688982,P509,c(Q2057971))
action filter_type
action find
entity Q6688982
relation P509
type Q2057971
[ANSWER] was the cause of death of Louise Troy
['Q6688982', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { resource:Q6688982 property:P509 ?k . ?k rdf:type ontology:Q2057971 }
breast cancer
Breast cancer was the cause of death of Louise Troy
breast cancer
action filter_type
action find
entity Louise Troy
relation cause of death
type health problem
['Louise Troy', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { resource:Louise_Troy property:cause_of_death ?k . ?k rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6688982
P26
Q502895
USER
Which people have that one as spouse ?
(c(Q502895),P26,Q128581)
action filter_type
action find
entity Q6688982
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q128581']
SELECT DISTINCT ?d WHERE { resource:Q6688982 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Louise Troy
action filter_type
action find
entity Louise Troy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'breast cancer']
SELECT DISTINCT ?d WHERE { resource:Louise_Troy property:spouse ?d . ?d rdf:type ontology:common_name }
[]
common name
Q2441446 Q77566
SYSTEM
Douglas Seale, Werner Klemperer
Q2441446 Q77566
(c(Q502895),P26,Q128581)
action filter_type
action find
entity Q6688982
relation P26
type Q502895
[ANSWERS] have that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q128581']
SELECT DISTINCT ?d WHERE { resource:Q6688982 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Douglas Seale Werner Klemperer
Douglas Seale and Werner Klemperer have that one as spouse
Douglas Seale Werner Klemperer
action filter_type
action find
entity Louise Troy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'breast cancer']
SELECT DISTINCT ?d WHERE { resource:Louise_Troy property:spouse ?d . ?d rdf:type ontology:common_name }
[]