Simple Question (Direct)
Simple Question
Q643472
P509
Q2057971
USER
How did Otis Young die ?
(Q643472,P509,c(Q2057971))
action filter_type
action find
entity Q643472
relation P509
type Q2057971
['Q643472', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { resource:Q643472 property:P509 ?z . ?z rdf:type ontology:Q2057971 }
Otis Young
action filter_type
action find
entity Otis Young
relation cause of death
type health problem
['Otis Young', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { resource:Otis_Young property:cause_of_death ?z . ?z rdf:type ontology:health_problem }
[]
health problem
Q12202
SYSTEM
stroke
Q12202
(Q643472,P509,c(Q2057971))
action filter_type
action find
entity Q643472
relation P509
type Q2057971
Otis Young died a [ANSWER]
['Q643472', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { resource:Q643472 property:P509 ?z . ?z rdf:type ontology:Q2057971 }
stroke
Otis Young died a stroke
stroke
action filter_type
action find
entity Otis Young
relation cause of death
type health problem
['Otis Young', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { resource:Otis_Young property:cause_of_death ?z . ?z rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q643472
P1196
Q1931388
USER
What manner did that person die ?
(Q12202,P1196,c(Q1931388))
action filter_type
action find
entity Q643472
relation P1196
type Q1931388
['Q12202', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?m WHERE { resource:Q643472 property:P1196 ?m . ?m rdf:type ontology:Q1931388 }
Otis Young
action filter_type
action find
entity Otis Young
relation manner of death
type cause of death
['stroke', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?m WHERE { resource:Otis_Young property:manner_of_death ?m . ?m rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q12202,P1196,c(Q1931388))
action filter_type
action find
entity Q643472
relation P1196
type Q1931388
That person died in [ANSWER]
['Q12202', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?m WHERE { resource:Q643472 property:P1196 ?m . ?m rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Otis Young
relation manner of death
type cause of death
['stroke', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?m WHERE { resource:Otis_Young property:manner_of_death ?m . ?m rdf:type ontology:cause_of_death }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q271759
P828
Q2057971 Q1441305 Q12136
USER
Which health problems are the causes of approximately the same number of medical signs or diseases as porphyria ?
(c(Q1441305)|c(Q12136),P828,c(Q2057971))
action approx
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q1441305
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q271759
relation P828
type Q1441305
type Q12136
[[{'concept': 'Q1441305'}, {'concept': 'Q12136'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?j ) WHERE { ?y rdf:type ?k . VALUES ( ?k ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } } . ?b property:P828 resource:Q271759 } } . FILTER ( ?j = ?f ) }
porphyria
action approx
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type medical sign
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity porphyria
relation has cause
type medical sign
type disease
[[{'concept': 'medical sign'}, {'concept': 'disease'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?j ) WHERE { ?y rdf:type ?k . VALUES ( ?k ) { ( ontology:disease ) ( ontology:medical_sign ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:disease ) ( ontology:medical_sign ) } } . ?b property:has_cause resource:porphyria } } . FILTER ( ?j = ?f ) }
[]
health problem medical sign disease
Q221668 Q11085 Q12152
SYSTEM
acute cystitis, Parkinson's disease, myocardial infarction
Q83319 Q271759 Q41478 Q1346016 Q1909343 Q7080278 Q18642366 Q188151 Q15734316 Q599683 Q147778 Q243257 Q558070 Q41571 Q1077139 Q221159 Q3339235 Q183392 Q155857 Q131742 Q7206990 Q2753827 Q604075 Q192100 Q746001 Q12167 Q5064113 Q478389 Q1704044 Q6673122 Q180152 Q12152 Q1135338 Q217519 Q2047938 Q3043145 Q511097 Q727028 Q3149939 Q18554068 Q847583 Q460167 Q767485 Q799615 Q662298 Q1518637 Q5160454 Q181754 Q11085 Q378681 Q221668 Q124604 Q281928 Q79793 Q4366062 Q2450598 Q2064603 Q661015 Q477390 Q736715 Q273510 Q12195 Q179945 Q23037744 Q29496 Q152100 Q664174 Q133780 Q15715457
(c(Q1441305)|c(Q12136),P828,c(Q2057971))
action approx
action union
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q1441305
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q271759
relation P828
type Q1441305
type Q12136
[ANSWERS] are the causes of approximately the same number of medical signs or diseases as porphyria
[[{'concept': 'Q1441305'}, {'concept': 'Q12136'}], 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?j ) WHERE { ?y rdf:type ?k . VALUES ( ?k ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } } . ?b property:P828 resource:Q271759 } } . FILTER ( ?j = ?f ) }
typhoid fever porphyria hemorrhoid pernicious anemia dermatophytosis Oguchi disease intoxication ischemia underlying disease Brugada syndrome liver cirrhosis chikungunya pelvic inflammatory disease epilepsy tic disorder schistosomiasis nervous system disease rickets rubella hepatitis podoconiosis Pigment dispersion syndrome multiple endocrine neoplasia type 2A lymphatic filariasis Thromboangiitis obliterans malnutrition Cerebrospinal fluid leak kyphosis portal vein thrombosis thyroid gland disease Vitiligo myocardial infarction Bell's palsy bubonic plague side effect cytochrome P450 Oxidoreductase Deficiency psoriatic arthritis bacterial infectious disease neonatal alloimmune disease lens subluxation cardiomyopathy Meniere's disease respiratory failure osteitis fibrosa ectropion VIPoma congenital syphilis heart failure Parkinson's disease peripheral artery disease acute cystitis portal hypertension social phobia measles Pneumococcal infection infective endocarditis pleomorphic adenoma achalasia Hyperinsulinism chronic kidney disease candidiasis poliomyelitis psoriasis respiratory allergy leukemia nicotine addiction asbestosis plague hepatobiliary disease
Acute cystitis, Parkinson's disease and myocardial infarction are the causes of approximately the same number of medical signs or diseases as porphyria
acute cystitis Parkinson's disease myocardial infarction
action approx
action union
action find_reverse_tuple_counts
relation has cause
type health problem
type medical sign
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity porphyria
relation has cause
type medical sign
type disease
[[{'concept': 'medical sign'}, {'concept': 'disease'}], 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?j ) WHERE { ?y rdf:type ?k . VALUES ( ?k ) { ( ontology:disease ) ( ontology:medical_sign ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:disease ) ( ontology:medical_sign ) } } . ?b property:has_cause resource:porphyria } } . FILTER ( ?j = ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q643472
P161
Q15416
USER
Which television program has Otis Young in its star cast ?
(c(Q15416),P161,Q643472)
action filter_type
action find_reverse
entity Q643472
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q643472']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q643472 . ?f rdf:type ontology:Q15416 }
Otis Young
action filter_type
action find_reverse
entity Otis Young
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Otis Young']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Otis_Young . ?f rdf:type ontology:television_program }
[]
television program
Q657856
SYSTEM
The Outcasts
Q657856
(c(Q15416),P161,Q643472)
action filter_type
action find_reverse
entity Q643472
relation P161
type Q15416
[ANSWER] has Otis Young in its star cast
[{'concept': 'Q15416'}, 'P161', 'Q643472']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q643472 . ?f rdf:type ontology:Q15416 }
The Outcasts
The Outcasts has Otis Young in its star cast
The Outcasts
action filter_type
action find_reverse
entity Otis Young
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Otis Young']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Otis_Young . ?f rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q657856
P364
Q34770
USER
Which language was used originally for the creation of that television program ?
(Q657856,P364,c(Q34770))
action filter_type
action find
entity Q657856
relation P364
type Q34770
['Q657856', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q657856 property:P364 ?t . ?t rdf:type ontology:Q34770 }
The Outcasts
action filter_type
action find
entity The Outcasts
relation original language of work
type language
['The Outcasts', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:The_Outcasts property:original_language_of_work ?t . ?t rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q657856,P364,c(Q34770))
action filter_type
action find
entity Q657856
relation P364
type Q34770
[ANSWER] was used originally for the creation of that television program
['Q657856', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { resource:Q657856 property:P364 ?t . ?t rdf:type ontology:Q34770 }
English
English was used originally for the creation of that television program
English
action filter_type
action find
entity The Outcasts
relation original language of work
type language
['The Outcasts', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { resource:The_Outcasts property:original_language_of_work ?t . ?t rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q657856
P57
Q502895
USER
Who directed that television program ?
(Q1860,P57,c(Q502895))
action filter_type
action find
entity Q657856
relation P57
type Q502895
['Q1860', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q657856 property:P57 ?x . ?x rdf:type ontology:Q502895 }
The Outcasts
action filter_type
action find
entity The Outcasts
relation director
type common name
['English', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:The_Outcasts property:director ?x . ?x rdf:type ontology:common_name }
[]
common name
Q2156687 Q708343 Q1241044
SYSTEM
Robert Butler, Marc Daniels, Robert Sparr
Q3045749 Q1241044 Q2156687 Q708343
(Q1860,P57,c(Q502895))
action filter_type
action find
entity Q657856
relation P57
type Q502895
[ANSWERS] directed that television program
['Q1860', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q657856 property:P57 ?x . ?x rdf:type ontology:Q502895 }
E.W. Swackhamer Robert Sparr Robert Butler Marc Daniels
Robert Butler, Marc Daniels and Robert Sparr directed that television program
Robert Butler Marc Daniels Robert Sparr
action filter_type
action find
entity The Outcasts
relation director
type common name
['English', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:The_Outcasts property:director ?x . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q2359141 Q657856
P57
Q502895
USER
Or Valley of Peace?
OR((Q657856,P57,c(Q502895)), (Q2359141,P57,c(Q502895)))
action filter_type
action union
action find
entity Q657856
relation P57
action find
entity Q2359141
relation P57
type Q502895
{'OR': [['Q657856', 'P57', {'concept': 'Q502895'}], ['Q2359141', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . { ?i property:P57 ?b . VALUES ( ?i ) { ( resource:Q657856 ) ( resource:Q2359141 ) } } }
Valley of Peace The Outcasts
action filter_type
action union
action find
entity The Outcasts
relation director
action find
entity Valley of Peace
relation director
type common name
{'OR': [['The Outcasts', 'director', {'concept': 'common name'}], ['Valley of Peace', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . { ?i property:director ?b . VALUES ( ?i ) { ( resource:The_Outcasts ) ( resource:Valley_of_Peace ) } } }
[]
common name
Q708343 Q3045749 Q1241044 Q2156687 Q3080757
SYSTEM
Marc Daniels, E.W. Swackhamer, Robert Sparr, Robert Butler, France Štiglic
Q708343 Q3045749 Q1241044 Q2156687 Q3080757
OR((Q657856,P57,c(Q502895)), (Q2359141,P57,c(Q502895)))
action filter_type
action union
action find
entity Q657856
relation P57
action find
entity Q2359141
relation P57
type Q502895
[ANSWERS]
{'OR': [['Q657856', 'P57', {'concept': 'Q502895'}], ['Q2359141', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . { ?i property:P57 ?b . VALUES ( ?i ) { ( resource:Q657856 ) ( resource:Q2359141 ) } } }
Marc Daniels E.W. Swackhamer Robert Sparr Robert Butler France Štiglic
Marc Daniels E.W. Swackhamer Robert Sparr Robert Butler France Štiglic
action filter_type
action union
action find
entity The Outcasts
relation director
action find
entity Valley of Peace
relation director
type common name
{'OR': [['The Outcasts', 'director', {'concept': 'common name'}], ['Valley of Peace', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . { ?i property:director ?b . VALUES ( ?i ) { ( resource:The_Outcasts ) ( resource:Valley_of_Peace ) } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P57
Q15416 Q838948
USER
How many television programs and works of art are that person a director of ?
(c(Q15416),P57,Q1241044) (c(Q838948),P57,Q1241044) (c(Q15416),P57,Q708343) (c(Q838948),P57,Q708343) (c(Q15416),P57,Q3045749) (c(Q838948),P57,Q3045749) (c(Q15416),P57,Q1241044) (c(Q838948),P57,Q1241044) (c(Q15416),P57,Q2156687) (c(Q838948),P57,Q2156687) (c(Q15416),P57,Q3080757) (c(Q838948),P57,Q3080757)
[{'concept': 'Q15416'}, 'P57', 'Q1241044'] [{'concept': 'Q838948'}, 'P57', 'Q1241044'] [{'concept': 'Q15416'}, 'P57', 'Q708343'] [{'concept': 'Q838948'}, 'P57', 'Q708343'] [{'concept': 'Q15416'}, 'P57', 'Q3045749'] [{'concept': 'Q838948'}, 'P57', 'Q3045749'] [{'concept': 'Q15416'}, 'P57', 'Q1241044'] [{'concept': 'Q838948'}, 'P57', 'Q1241044'] [{'concept': 'Q15416'}, 'P57', 'Q2156687'] [{'concept': 'Q838948'}, 'P57', 'Q2156687'] [{'concept': 'Q15416'}, 'P57', 'Q3080757'] [{'concept': 'Q838948'}, 'P57', 'Q3080757']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q5280518 resource:Q1241044 } UNION { ?y property:Q5280518 resource:Q1241044 } UNION { ?z property:Q5280518 resource:Q708343 } UNION { ?y property:Q5280518 resource:Q708343 } UNION { ?z property:Q5280518 resource:Q3045749 } UNION { ?y property:Q5280518 resource:Q3045749 } UNION { ?z property:Q5280518 resource:Q1241044 } UNION { ?y property:Q5280518 resource:Q1241044 } UNION { ?z property:Q5280518 resource:Q15966812 } UNION { ?y property:Q5280518 resource:Q15966812 } UNION { ?z property:Q5280518 resource:Q3080757 } UNION { ?y property:Q5280518 resource:Q3080757 } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q838948 }
[{'concept': 'television program'}, 'director', 'Robert Sparr'] [{'concept': 'work of art'}, 'director', 'Robert Sparr'] [{'concept': 'television program'}, 'director', 'Marc Daniels'] [{'concept': 'work of art'}, 'director', 'Marc Daniels'] [{'concept': 'television program'}, 'director', 'E.W. Swackhamer'] [{'concept': 'work of art'}, 'director', 'E.W. Swackhamer'] [{'concept': 'television program'}, 'director', 'Robert Sparr'] [{'concept': 'work of art'}, 'director', 'Robert Sparr'] [{'concept': 'television program'}, 'director', 'Robert Butler'] [{'concept': 'work of art'}, 'director', 'Robert Butler'] [{'concept': 'television program'}, 'director', 'France Štiglic'] [{'concept': 'work of art'}, 'director', 'France Štiglic']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:director resource:Robert_Sparr } UNION { ?y property:director resource:Robert_Sparr } UNION { ?z property:director resource:Marc_Daniels } UNION { ?y property:director resource:Marc_Daniels } UNION { ?z property:director resource:E.W._Swackhamer } UNION { ?y property:director resource:E.W._Swackhamer } UNION { ?z property:director resource:Robert_Sparr } UNION { ?y property:director resource:Robert_Sparr } UNION { ?z property:director resource:Robert_Butler } UNION { ?y property:director resource:Robert_Butler } UNION { ?z property:director resource:France_Štiglic } UNION { ?y property:director resource:France_Štiglic } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:work_of_art }
[]
television program work of art
Quantitative|Count|Mult. entity type|Clarification
Q708343
SYSTEM
Did you mean Marc Daniels ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q5280518 resource:Q1241044 } UNION { ?y property:Q5280518 resource:Q1241044 } UNION { ?z property:Q5280518 resource:Q708343 } UNION { ?y property:Q5280518 resource:Q708343 } UNION { ?z property:Q5280518 resource:Q3045749 } UNION { ?y property:Q5280518 resource:Q3045749 } UNION { ?z property:Q5280518 resource:Q1241044 } UNION { ?y property:Q5280518 resource:Q1241044 } UNION { ?z property:Q5280518 resource:Q15966812 } UNION { ?y property:Q5280518 resource:Q15966812 } UNION { ?z property:Q5280518 resource:Q3080757 } UNION { ?y property:Q5280518 resource:Q3080757 } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q838948 }
Did you mean Marc Daniels ?
Marc Daniels
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:director resource:Robert_Sparr } UNION { ?y property:director resource:Robert_Sparr } UNION { ?z property:director resource:Marc_Daniels } UNION { ?y property:director resource:Marc_Daniels } UNION { ?z property:director resource:E.W._Swackhamer } UNION { ?y property:director resource:E.W._Swackhamer } UNION { ?z property:director resource:Robert_Sparr } UNION { ?y property:director resource:Robert_Sparr } UNION { ?z property:director resource:Robert_Butler } UNION { ?y property:director resource:Robert_Butler } UNION { ?z property:director resource:France_Štiglic } UNION { ?y property:director resource:France_Štiglic } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Robert Sparr. Could you tell me the answer for that?
(c(Q15416),P57,Q1241044) (c(Q838948),P57,Q1241044) (c(Q15416),P57,Q708343) (c(Q838948),P57,Q708343) (c(Q15416),P57,Q3045749) (c(Q838948),P57,Q3045749) (c(Q15416),P57,Q1241044) (c(Q838948),P57,Q1241044) (c(Q15416),P57,Q2156687) (c(Q838948),P57,Q2156687) (c(Q15416),P57,Q3080757) (c(Q838948),P57,Q3080757)
Q1241044
[{'concept': 'Q15416'}, 'P57', 'Q1241044'] [{'concept': 'Q838948'}, 'P57', 'Q1241044'] [{'concept': 'Q15416'}, 'P57', 'Q708343'] [{'concept': 'Q838948'}, 'P57', 'Q708343'] [{'concept': 'Q15416'}, 'P57', 'Q3045749'] [{'concept': 'Q838948'}, 'P57', 'Q3045749'] [{'concept': 'Q15416'}, 'P57', 'Q1241044'] [{'concept': 'Q838948'}, 'P57', 'Q1241044'] [{'concept': 'Q15416'}, 'P57', 'Q2156687'] [{'concept': 'Q838948'}, 'P57', 'Q2156687'] [{'concept': 'Q15416'}, 'P57', 'Q3080757'] [{'concept': 'Q838948'}, 'P57', 'Q3080757']
[{'concept': 'television program'}, 'director', 'Robert Sparr'] [{'concept': 'work of art'}, 'director', 'Robert Sparr'] [{'concept': 'television program'}, 'director', 'Marc Daniels'] [{'concept': 'work of art'}, 'director', 'Marc Daniels'] [{'concept': 'television program'}, 'director', 'E.W. Swackhamer'] [{'concept': 'work of art'}, 'director', 'E.W. Swackhamer'] [{'concept': 'television program'}, 'director', 'Robert Sparr'] [{'concept': 'work of art'}, 'director', 'Robert Sparr'] [{'concept': 'television program'}, 'director', 'Robert Butler'] [{'concept': 'work of art'}, 'director', 'Robert Butler'] [{'concept': 'television program'}, 'director', 'France Štiglic'] [{'concept': 'work of art'}, 'director', 'France Štiglic']
[]
SYSTEM
3 television programs and 3 works of art
Q4659928 Q3853969 Q1534639 Q19544762 Q657856 Q7761177
(c(Q15416),P57,Q1241044) (c(Q838948),P57,Q1241044) (c(Q15416),P57,Q708343) (c(Q838948),P57,Q708343) (c(Q15416),P57,Q3045749) (c(Q838948),P57,Q3045749) (c(Q15416),P57,Q1241044) (c(Q838948),P57,Q1241044) (c(Q15416),P57,Q2156687) (c(Q838948),P57,Q2156687) (c(Q15416),P57,Q3080757) (c(Q838948),P57,Q3080757)
[ANSWER]
[{'concept': 'Q15416'}, 'P57', 'Q1241044'] [{'concept': 'Q838948'}, 'P57', 'Q1241044'] [{'concept': 'Q15416'}, 'P57', 'Q708343'] [{'concept': 'Q838948'}, 'P57', 'Q708343'] [{'concept': 'Q15416'}, 'P57', 'Q3045749'] [{'concept': 'Q838948'}, 'P57', 'Q3045749'] [{'concept': 'Q15416'}, 'P57', 'Q1241044'] [{'concept': 'Q838948'}, 'P57', 'Q1241044'] [{'concept': 'Q15416'}, 'P57', 'Q2156687'] [{'concept': 'Q838948'}, 'P57', 'Q2156687'] [{'concept': 'Q15416'}, 'P57', 'Q3080757'] [{'concept': 'Q838948'}, 'P57', 'Q3080757']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q5280518 resource:Q1241044 } UNION { ?y property:Q5280518 resource:Q1241044 } UNION { ?z property:Q5280518 resource:Q708343 } UNION { ?y property:Q5280518 resource:Q708343 } UNION { ?z property:Q5280518 resource:Q3045749 } UNION { ?y property:Q5280518 resource:Q3045749 } UNION { ?z property:Q5280518 resource:Q1241044 } UNION { ?y property:Q5280518 resource:Q1241044 } UNION { ?z property:Q5280518 resource:Q15966812 } UNION { ?y property:Q5280518 resource:Q15966812 } UNION { ?z property:Q5280518 resource:Q3080757 } UNION { ?y property:Q5280518 resource:Q3080757 } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q838948 }
A Swingin' Summer More Dead Than Alive The Alaskans Once You Kiss a Stranger The Outcasts The Roaring 20s
3 television programs and 3 works of art
[{'concept': 'television program'}, 'director', 'Robert Sparr'] [{'concept': 'work of art'}, 'director', 'Robert Sparr'] [{'concept': 'television program'}, 'director', 'Marc Daniels'] [{'concept': 'work of art'}, 'director', 'Marc Daniels'] [{'concept': 'television program'}, 'director', 'E.W. Swackhamer'] [{'concept': 'work of art'}, 'director', 'E.W. Swackhamer'] [{'concept': 'television program'}, 'director', 'Robert Sparr'] [{'concept': 'work of art'}, 'director', 'Robert Sparr'] [{'concept': 'television program'}, 'director', 'Robert Butler'] [{'concept': 'work of art'}, 'director', 'Robert Butler'] [{'concept': 'television program'}, 'director', 'France Štiglic'] [{'concept': 'work of art'}, 'director', 'France Štiglic']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:director resource:Robert_Sparr } UNION { ?y property:director resource:Robert_Sparr } UNION { ?z property:director resource:Marc_Daniels } UNION { ?y property:director resource:Marc_Daniels } UNION { ?z property:director resource:E.W._Swackhamer } UNION { ?y property:director resource:E.W._Swackhamer } UNION { ?z property:director resource:Robert_Sparr } UNION { ?y property:director resource:Robert_Sparr } UNION { ?z property:director resource:Robert_Butler } UNION { ?y property:director resource:Robert_Butler } UNION { ?z property:director resource:France_Štiglic } UNION { ?y property:director resource:France_Štiglic } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2156687
P106
Q28640
USER
What are the professions of Robert Butler ?
(Q2156687,P106,c(Q28640))
action filter_type
action find
entity Q2156687
relation P106
type Q28640
['Q2156687', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q28640 . resource:Q2156687 property:P106 ?f }
Robert Butler
action filter_type
action find
entity Robert Butler
relation occupation
type profession
['Robert Butler', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:profession . resource:Robert_Butler property:occupation ?f }
[]
profession
Q2526255 Q3282637
SYSTEM
film director, film producer
Q2526255 Q3282637
(Q2156687,P106,c(Q28640))
action filter_type
action find
entity Q2156687
relation P106
type Q28640
The professions of Robert Butler are [ANSWERS]
['Q2156687', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q28640 . resource:Q2156687 property:P106 ?f }
film director film producer
The professions of Robert Butler are film director and film producer
film director film producer
action filter_type
action find
entity Robert Butler
relation occupation
type profession
['Robert Butler', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:profession . resource:Robert_Butler property:occupation ?f }
[]