Simple Question (Direct)
Simple Question
Q8000696
P1196
Q1931388
USER
What situation did Wild Jimmy Spruill die in ?
(Q8000696,P1196,c(Q1931388))
action filter_type
action find
entity Q8000696
relation P1196
type Q1931388
['Q8000696', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?f WHERE { resource:Q8000696 property:P1196 ?f . ?f rdf:type ontology:Q1931388 }
Wild Jimmy Spruill
action filter_type
action find
entity Wild Jimmy Spruill
relation manner of death
type cause of death
['Wild Jimmy Spruill', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?f WHERE { resource:Wild_Jimmy_Spruill property:manner_of_death ?f . ?f rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q8000696,P1196,c(Q1931388))
action filter_type
action find
entity Q8000696
relation P1196
type Q1931388
Wild Jimmy Spruill died from [ANSWER]
['Q8000696', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?f WHERE { resource:Q8000696 property:P1196 ?f . ?f rdf:type ontology:Q1931388 }
natural causes
Wild Jimmy Spruill died from natural causes
natural causes
action filter_type
action find
entity Wild Jimmy Spruill
relation manner of death
type cause of death
['Wild Jimmy Spruill', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?f WHERE { resource:Wild_Jimmy_Spruill property:manner_of_death ?f . ?f rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8000696
P509
Q2057971
USER
How did that person die ?
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q8000696
relation P509
type Q2057971
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q8000696 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
Wild Jimmy Spruill
action filter_type
action find
entity Wild Jimmy Spruill
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Wild_Jimmy_Spruill property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q3739104,P509,c(Q2057971))
action filter_type
action find
entity Q8000696
relation P509
type Q2057971
That person died of [ANSWER]
['Q3739104', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q8000696 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
myocardial infarction
That person died of myocardial infarction
myocardial infarction
action filter_type
action find
entity Wild Jimmy Spruill
relation cause of death
type health problem
['natural causes', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Wild_Jimmy_Spruill property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8000696
P172
Q2472587
USER
What is the ethnicity of that person ?
(Q12152,P172,c(Q2472587))
action filter_type
action find
entity Q8000696
relation P172
type Q2472587
['Q12152', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?x WHERE { resource:Q8000696 property:P172 ?x . ?x rdf:type ontology:Q2472587 }
Wild Jimmy Spruill
action filter_type
action find
entity Wild Jimmy Spruill
relation ethnic group
type people
['myocardial infarction', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?x WHERE { resource:Wild_Jimmy_Spruill property:ethnic_group ?x . ?x rdf:type ontology:people }
[]
people
Q49085
SYSTEM
African Americans
Q49085
(Q12152,P172,c(Q2472587))
action filter_type
action find
entity Q8000696
relation P172
type Q2472587
The ethnicity of that person is [ANSWER]
['Q12152', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?x WHERE { resource:Q8000696 property:P172 ?x . ?x rdf:type ontology:Q2472587 }
African Americans
The ethnicity of that person is African Americans
African Americans
action filter_type
action find
entity Wild Jimmy Spruill
relation ethnic group
type people
['myocardial infarction', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?x WHERE { resource:Wild_Jimmy_Spruill property:ethnic_group ?x . ?x rdf:type ontology:people }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q2866610
P828
Q12136 Q2057971
USER
Which diseases are the causes of greater number of health problems than hyposalivation ?
(c(Q2057971),P828,c(Q12136))
action greater
action find_reverse_tuple_counts
relation P828
type Q12136
type Q2057971
action count
action filter_type
action find
entity Q2866610
relation P828
type Q12136
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q12136'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P828 ?c . ?c rdf:type ontology:Q12136 . ?r rdf:type ontology:Q2057971 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q2866610 property:P828 ?k . ?k rdf:type ontology:Q12136 } } . FILTER ( ?t > ?x ) }
hyposalivation
action greater
action find_reverse_tuple_counts
relation has cause
type disease
type health problem
action count
action filter_type
action find
entity hyposalivation
relation has cause
type disease
[{'concept': 'health problem'}, 'has cause', {'concept': 'disease'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:has_cause ?c . ?c rdf:type ontology:disease . ?r rdf:type ontology:health_problem } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:hyposalivation property:has_cause ?k . ?k rdf:type ontology:disease } } . FILTER ( ?t > ?x ) }
[]
disease health problem
Q110315 Q125367 Q15326
SYSTEM
lead poisoning, carbon monoxide poisoning, alcoholism
Q945238 Q1292038 Q1266401 Q4778771 Q1778287 Q110315 Q2655893 Q18924571 Q15326 Q1431933 Q41392 Q523893 Q460591 Q125367
(c(Q2057971),P828,c(Q12136))
action greater
action find_reverse_tuple_counts
relation P828
type Q12136
type Q2057971
action count
action filter_type
action find
entity Q2866610
relation P828
type Q12136
[ANSWERS] are the causes of greater number of health problems than hyposalivation
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q12136'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:P828 ?c . ?c rdf:type ontology:Q12136 . ?r rdf:type ontology:Q2057971 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q2866610 property:P828 ?k . ?k rdf:type ontology:Q12136 } } . FILTER ( ?t > ?x ) }
peripheral neuropathy infestation Duodenal atresia Aortocaval compression syndrome Waldenström's macroglobulinemia lead poisoning Vitamin A deficiency niacin deficiency alcoholism Aortoiliac occlusive disease Stress fracture Ichthyosis decompression sickness carbon monoxide poisoning
Lead poisoning, carbon monoxide poisoning and alcoholism are the causes of greater number of health problems than hyposalivation
lead poisoning carbon monoxide poisoning alcoholism
action greater
action find_reverse_tuple_counts
relation has cause
type disease
type health problem
action count
action filter_type
action find
entity hyposalivation
relation has cause
type disease
[{'concept': 'health problem'}, 'has cause', {'concept': 'disease'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?t ) WHERE { ?r property:has_cause ?c . ?c rdf:type ontology:disease . ?r rdf:type ontology:health_problem } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:hyposalivation property:has_cause ?k . ?k rdf:type ontology:disease } } . FILTER ( ?t > ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q189331
P828
Q12136 Q2057971
USER
And how about cardiac dysrhythmia?
(c(Q2057971),P828,c(Q12136))
action greater
action find_reverse_tuple_counts
relation P828
type Q12136
type Q2057971
action count
action filter_type
action find
entity Q189331
relation P828
type Q12136
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q12136'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:P828 ?l . ?l rdf:type ontology:Q12136 . ?z rdf:type ontology:Q2057971 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ontology:Q12136 . resource:Q189331 property:P828 ?s } } . FILTER ( ?c > ?y ) }
cardiac dysrhythmia
action greater
action find_reverse_tuple_counts
relation has cause
type disease
type health problem
action count
action filter_type
action find
entity cardiac dysrhythmia
relation has cause
type disease
[{'concept': 'health problem'}, 'has cause', {'concept': 'disease'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:has_cause ?l . ?l rdf:type ontology:disease . ?z rdf:type ontology:health_problem } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ontology:disease . resource:cardiac_dysrhythmia property:has_cause ?s } } . FILTER ( ?c > ?y ) }
[]
disease health problem
Q110315 Q125367 Q15326
SYSTEM
lead poisoning, carbon monoxide poisoning, alcoholism
Q945238 Q1292038 Q1266401 Q4778771 Q1778287 Q110315 Q2655893 Q18924571 Q15326 Q1431933 Q41392 Q523893 Q460591 Q125367
(c(Q2057971),P828,c(Q12136))
action greater
action find_reverse_tuple_counts
relation P828
type Q12136
type Q2057971
action count
action filter_type
action find
entity Q189331
relation P828
type Q12136
[ANSWERS]
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q12136'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:P828 ?l . ?l rdf:type ontology:Q12136 . ?z rdf:type ontology:Q2057971 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ontology:Q12136 . resource:Q189331 property:P828 ?s } } . FILTER ( ?c > ?y ) }
peripheral neuropathy infestation Duodenal atresia Aortocaval compression syndrome Waldenström's macroglobulinemia lead poisoning Vitamin A deficiency niacin deficiency alcoholism Aortoiliac occlusive disease Stress fracture Ichthyosis decompression sickness carbon monoxide poisoning
lead poisoning carbon monoxide poisoning alcoholism
action greater
action find_reverse_tuple_counts
relation has cause
type disease
type health problem
action count
action filter_type
action find
entity cardiac dysrhythmia
relation has cause
type disease
[{'concept': 'health problem'}, 'has cause', {'concept': 'disease'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?c ) WHERE { ?z property:has_cause ?l . ?l rdf:type ontology:disease . ?z rdf:type ontology:health_problem } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s rdf:type ontology:disease . resource:cardiac_dysrhythmia property:has_cause ?s } } . FILTER ( ?c > ?y ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q16739 Q15326
P921 P915
Q838948
USER
Which works of art have alcoholism as their main topic and were not shot at Long Beach ?
AND((c(Q838948),P921,Q15326), NOT((c(Q838948),P915,Q16739)))
action filter_type
action difference
action find_reverse
entity Q15326
relation P921
action find_reverse
entity Q16739
relation P915
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P921', 'Q15326'], {'NOT': [[{'concept': 'Q838948'}, 'P915', 'Q16739']]}]}
SELECT DISTINCT ?b WHERE { FILTER NOT EXISTS { ?b property:P915 resource:Q16739 } . ?b property:P921 resource:Q15326 . ?b rdf:type ontology:Q838948 }
Long Beach alcoholism
action filter_type
action difference
action find_reverse
entity alcoholism
relation main subject
action find_reverse
entity Long Beach
relation filming location
type work of art
{'AND': [[{'concept': 'work of art'}, 'main subject', 'alcoholism'], {'NOT': [[{'concept': 'work of art'}, 'filming location', 'Long Beach']]}]}
SELECT DISTINCT ?b WHERE { FILTER NOT EXISTS { ?b property:filming_location resource:Long_Beach } . ?b property:main_subject resource:alcoholism . ?b rdf:type ontology:work_of_art }
[]
work of art
Q1332776 Q5070830 Q1592060 Q32535 Q3072241 Q3208701 Q1416440 Q1768064 Q1959191 Q19878525
SYSTEM
Some of them are I'll Cry Tomorrow, Chances: The Women of Magdalene, Un singe en hiver, That's My Boy, Filth, La Femme de ma vie, Le Cercle rouge, MR 73, Afonya, Grace.
Q849336 Q1193825 Q168853 Q17072411 Q5432300 Q19878525 Q7767084 Q841019 Q1304320 Q18151305 Q7562271 Q3221216 Q925980 Q2365015 Q1528457 Q3506295 Q1113987 Q884135 Q3072241 Q541445 Q3977067 Q1753693 Q221098 Q18152725 Q300568 Q5276536 Q4911248 Q195303 Q5216128 Q946888 Q4656289 Q1493714 Q8990291 Q268668 Q527588 Q5528068 Q784790 Q1757030 Q19824747 Q4103201 Q3208701 Q2602493 Q4354588 Q1324120 Q3225097 Q1137254 Q576371 Q1917949 Q7577843 Q463733 Q18621803 Q1768064 Q830376 Q1248177 Q5070830 Q2320191 Q958142 Q186341 Q1128750 Q3521351 Q708306 Q32535 Q1907380 Q950920 Q249215 Q3549480 Q1165415 Q2023665 Q5306716 Q1861376 Q59610 Q7715846 Q641760 Q325643 Q1959191 Q708332 Q1212205 Q220376 Q1276046 Q1208409 Q6865007 Q1189572 Q1332776 Q3474574 Q3222219 Q15068418 Q4160350 Q1189674 Q1545071 Q1779674 Q564298 Q625424 Q221842 Q3214034 Q6454394 Q713979 Q3964350 Q1592060 Q237134 Q19864557 Q1928695 Q722379 Q4478964 Q467248 Q5454522 Q4101813 Q850238 Q1145732 Q6672498 Q1737875 Q1439941 Q2543388 Q321561 Q1466736 Q16028862 Q384040 Q1305622 Q1008351 Q2182637 Q568133 Q1923676 Q19961370 Q1341875 Q2299929 Q15972383 Q3823413 Q18171043 Q401539 Q3040133 Q16249822 Q1195431 Q7167725 Q1416440 Q700350 Q1216682 Q3522804 Q4900877 Q959051 Q16313749 Q154077 Q2058071 Q679373 Q16248744 Q16249816 Q919579 Q1748231 Q12882092 Q1305029 Q280918 Q13008263 Q1415964 Q1304397 Q1756560 Q627438 Q2053405 Q937087 Q13557525 Q3838066 Q856274
AND((c(Q838948),P921,Q15326), NOT((c(Q838948),P915,Q16739)))
action filter_type
action difference
action find_reverse
entity Q15326
relation P921
action find_reverse
entity Q16739
relation P915
type Q838948
[ANSWERS] have alcoholism as their main topic and were not shot at Long Beach
{'AND': [[{'concept': 'Q838948'}, 'P921', 'Q15326'], {'NOT': [[{'concept': 'Q838948'}, 'P915', 'Q16739']]}]}
SELECT DISTINCT ?b WHERE { FILTER NOT EXISTS { ?b property:P915 resource:Q16739 } . ?b property:P921 resource:Q15326 . ?b rdf:type ontology:Q838948 }
Dangerous Affliction Factotum Neenga Nalla Irukkanum Falling Angels Grace. The Struggle Sahib Bibi Aur Ghulam A Tree Grows in Brooklyn Kansas Saloon Smashers Sons Into the West Skin Deep Notre histoire You Kill Me Dev.D Tender Mercies Blind Date Filth Being Flynn Sunset Strip The Clink of Ice 28 Days Mind Meld: Secrets Behind the Voyage of a Life A Star Is Born Dikkatra Parvathi Bill W. Barfly Dangerous Parking Young Man with a Horn A Day at the Beach Tales of Ordinary Madness Redemption Unnal Mudiyum Thambi Under the Volcano Gavilán o Paloma Come Fill the Cup Heart of Light Krisha Boyhood La Femme de ma vie Trees Lounge Falling Sky El Dorado Noose Country Strong Round Midnight My Name Is Joe Spirit The Champ A esmorga MR 73 The Rum Diary Metastases Chances: The Women of Magdalene Long Day's Journey into Night A Love Song for Bobby Long The Shining Crazy Heart The Iceman Cometh Arthur That's My Boy Rosetta The Joker Is Wild Project X Too Much, Too Soon 16 Years of Alcohol On the Bowery Dreams and Shadows Merrily We Go to Hell Seven Psychopaths The Battle for Whiteclay Ted Who's Afraid of Virginia Woolf? Afonya Arthur 2: On the Rocks Le Beau Serge Hancock Something to Live For Changing Lanes Mini An Autumn Afternoon I'll Cry Tomorrow Saving Mr. Banks One for the Road The Pilot Joe Everything Must Go Ironweed Lights in the Dusk Flight Kingpin Under Capricorn La Ciénaga Smashed Cat on a Hot Tin Roof Solitudine Un singe en hiver The Lost Weekend Malignant When a Man Loves a Woman The World's End Morning Patrol Pay It Forward Fish Hawk Innocent Saturday Betty Sleepers Long Day's Journey into Night Come Back, Little Sheba Smash-Up, the Story of a Woman Only When I Laugh Scent of a Woman Pollock Cat on a Hot Tin Roof Julia A Star Is Born Rio Bravo The Legend of the Holy Drinker Another Year The Cure A Royal Hangover Drunken Angel Submarino Leviathan The Night the Lights Went Out in Georgia One Little Pill Beyond Drunks Death Nurse 2 The Man Who Fell to Earth Perdóname Todo Le Cercle rouge D-Tox Days of Wine and Roses The Spectacular Now Bhakthajanangalude Sradhakku W. Punar Jenmam Walk the Line Shakes the Clown The Verdict Black and White Death Nurse Once Were Warriors Clean and Sober The Loser Takes It All The Country Girl Leaving Las Vegas Rudraveena Warrior My Favorite Year Withnail and I Arthur The Fire Within The Doors The Geographer Drank His Globe Away Café Paradis Who's Afraid of Virginia Woolf?
I'll Cry Tomorrow, Chances: The Women of Magdalene, Un singe en hiver, That's My Boy, Filth, La Femme de ma vie, Le Cercle rouge, MR 73, Afonya and Grace. have alcoholism as their main topic and were not shot at Long Beach
I'll Cry Tomorrow Chances: The Women of Magdalene Un singe en hiver That's My Boy Filth La Femme de ma vie Le Cercle rouge MR 73 Afonya Grace.
action filter_type
action difference
action find_reverse
entity alcoholism
relation main subject
action find_reverse
entity Long Beach
relation filming location
type work of art
{'AND': [[{'concept': 'work of art'}, 'main subject', 'alcoholism'], {'NOT': [[{'concept': 'work of art'}, 'filming location', 'Long Beach']]}]}
SELECT DISTINCT ?b WHERE { FILTER NOT EXISTS { ?b property:filming_location resource:Long_Beach } . ?b property:main_subject resource:alcoholism . ?b rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q21173316 Q125367
P780
Q12136
USER
Which diseases are a symptom of carbon monoxide poisoning and bromine exposure ?
AND((Q125367,P780,c(Q12136)), (Q21173316,P780,c(Q12136)))
action filter_type
action intersection
action find
entity Q125367
relation P780
action find
entity Q21173316
relation P780
type Q12136
{'AND': [['Q125367', 'P780', {'concept': 'Q12136'}], ['Q21173316', 'P780', {'concept': 'Q12136'}]]}
SELECT DISTINCT ?k WHERE { resource:Q21173316 property:P780 ?k . resource:Q125367 property:P780 ?k . ?k rdf:type ontology:Q12136 }
bromine exposure carbon monoxide poisoning
action filter_type
action intersection
action find
entity carbon monoxide poisoning
relation symptoms
action find
entity bromine exposure
relation symptoms
type disease
{'AND': [['carbon monoxide poisoning', 'symptoms', {'concept': 'disease'}], ['bromine exposure', 'symptoms', {'concept': 'disease'}]]}
SELECT DISTINCT ?k WHERE { resource:bromine_exposure property:symptoms ?k . resource:carbon_monoxide_poisoning property:symptoms ?k . ?k rdf:type ontology:disease }
[]
disease
Q86
SYSTEM
headache
Q86
AND((Q125367,P780,c(Q12136)), (Q21173316,P780,c(Q12136)))
action filter_type
action intersection
action find
entity Q125367
relation P780
action find
entity Q21173316
relation P780
type Q12136
[ANSWER] is a symptom of carbon monoxide poisoning and bromine exposure
{'AND': [['Q125367', 'P780', {'concept': 'Q12136'}], ['Q21173316', 'P780', {'concept': 'Q12136'}]]}
SELECT DISTINCT ?k WHERE { resource:Q21173316 property:P780 ?k . resource:Q125367 property:P780 ?k . ?k rdf:type ontology:Q12136 }
headache
Headache is a symptom of carbon monoxide poisoning and bromine exposure
headache
action filter_type
action intersection
action find
entity carbon monoxide poisoning
relation symptoms
action find
entity bromine exposure
relation symptoms
type disease
{'AND': [['carbon monoxide poisoning', 'symptoms', {'concept': 'disease'}], ['bromine exposure', 'symptoms', {'concept': 'disease'}]]}
SELECT DISTINCT ?k WHERE { resource:bromine_exposure property:symptoms ?k . resource:carbon_monoxide_poisoning property:symptoms ?k . ?k rdf:type ontology:disease }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q86 Q6535758
P2176
Q8386
USER
Is levobetaxolol used as an antidote for that disease ?
(Q86,P2176,Q6535758)
action is_in
entity Q6535758
action find
entity Q86
relation P2176
['Q86', 'P2176', 'Q6535758']
ASK WHERE { resource:Q86 property:P2176 resource:Q6535758 }
headache levobetaxolol
action is_in
entity levobetaxolol
action find
entity headache
relation drug used for treatment
['headache', 'drug used for treatment', 'levobetaxolol']
ASK WHERE { resource:headache property:drug_used_for_treatment resource:levobetaxolol }
[]
drug
SYSTEM
NO
(Q86,P2176,Q6535758)
action is_in
entity Q6535758
action find
entity Q86
relation P2176
[ANSWER]
['Q86', 'P2176', 'Q6535758']
ASK WHERE { resource:Q86 property:P2176 resource:Q6535758 }
No
action is_in
entity levobetaxolol
action find
entity headache
relation drug used for treatment
['headache', 'drug used for treatment', 'levobetaxolol']
ASK WHERE { resource:headache property:drug_used_for_treatment resource:levobetaxolol }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q8000696 Q5248839 Q1823726
P264
Q334453
USER
Does Wild Jimmy Spruill have Decca Broadway and Fire Records as its recording sponsor ?
(Q8000696,P264,Q5248839) (Q8000696,P264,Q1823726)
action is_in
entity Q8000696
action intersection
action find_reverse
entity Q5248839
relation P264
action find_reverse
entity Q1823726
relation P264
['Q8000696', 'P264', 'Q5248839'] ['Q8000696', 'P264', 'Q1823726']
ASK WHERE { resource:Q8000696 property:P264 resource:Q5248839 . resource:Q8000696 property:P264 resource:Q1823726 }
Wild Jimmy Spruill Decca Broadway Fire Records
action is_in
entity Wild Jimmy Spruill
action intersection
action find_reverse
entity Decca Broadway
relation record label
action find_reverse
entity Fire Records
relation record label
['Wild Jimmy Spruill', 'record label', 'Decca Broadway'] ['Wild Jimmy Spruill', 'record label', 'Fire Records']
ASK WHERE { resource:Wild_Jimmy_Spruill property:record_label resource:Decca_Broadway . resource:Wild_Jimmy_Spruill property:record_label resource:Fire_Records }
[]
division
SYSTEM
NO and YES respectively
(Q8000696,P264,Q5248839) (Q8000696,P264,Q1823726)
action is_in
entity Q8000696
action intersection
action find_reverse
entity Q5248839
relation P264
action find_reverse
entity Q1823726
relation P264
[ANSWER]
['Q8000696', 'P264', 'Q5248839'] ['Q8000696', 'P264', 'Q1823726']
ASK WHERE { resource:Q8000696 property:P264 resource:Q5248839 . resource:Q8000696 property:P264 resource:Q1823726 }
NO and YES respectively
action is_in
entity Wild Jimmy Spruill
action intersection
action find_reverse
entity Decca Broadway
relation record label
action find_reverse
entity Fire Records
relation record label
['Wild Jimmy Spruill', 'record label', 'Decca Broadway'] ['Wild Jimmy Spruill', 'record label', 'Fire Records']
ASK WHERE { resource:Wild_Jimmy_Spruill property:record_label resource:Decca_Broadway . resource:Wild_Jimmy_Spruill property:record_label resource:Fire_Records }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21175032 Q110315
P780
Q12136
USER
Which diseases are a sign of lead poisoning or pentachlorophenol exposure ?
OR((Q110315,P780,c(Q12136)), (Q21175032,P780,c(Q12136)))
action filter_type
action union
action find
entity Q110315
relation P780
action find
entity Q21175032
relation P780
type Q12136
{'OR': [['Q110315', 'P780', {'concept': 'Q12136'}], ['Q21175032', 'P780', {'concept': 'Q12136'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?g ) { ( resource:Q21175032 ) ( resource:Q110315 ) } . ?g property:P780 ?i } . ?i rdf:type ontology:Q12136 }
pentachlorophenol exposure lead poisoning
action filter_type
action union
action find
entity lead poisoning
relation symptoms
action find
entity pentachlorophenol exposure
relation symptoms
type disease
{'OR': [['lead poisoning', 'symptoms', {'concept': 'disease'}], ['pentachlorophenol exposure', 'symptoms', {'concept': 'disease'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?g ) { ( resource:pentachlorophenol_exposure ) ( resource:lead_poisoning ) } . ?g property:symptoms ?i } . ?i rdf:type ontology:disease }
[]
disease
Q1869874 Q693058 Q86
SYSTEM
insomnia, chest pain, headache
Q1869874 Q693058 Q86
OR((Q110315,P780,c(Q12136)), (Q21175032,P780,c(Q12136)))
action filter_type
action union
action find
entity Q110315
relation P780
action find
entity Q21175032
relation P780
type Q12136
[ANSWERS] are a sign of lead poisoning or pentachlorophenol exposure
{'OR': [['Q110315', 'P780', {'concept': 'Q12136'}], ['Q21175032', 'P780', {'concept': 'Q12136'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?g ) { ( resource:Q21175032 ) ( resource:Q110315 ) } . ?g property:P780 ?i } . ?i rdf:type ontology:Q12136 }
insomnia chest pain headache
Insomnia, chest pain and headache are a sign of lead poisoning or pentachlorophenol exposure
insomnia chest pain headache
action filter_type
action union
action find
entity lead poisoning
relation symptoms
action find
entity pentachlorophenol exposure
relation symptoms
type disease
{'OR': [['lead poisoning', 'symptoms', {'concept': 'disease'}], ['pentachlorophenol exposure', 'symptoms', {'concept': 'disease'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?g ) { ( resource:pentachlorophenol_exposure ) ( resource:lead_poisoning ) } . ?g property:symptoms ?i } . ?i rdf:type ontology:disease }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12136 Q732577 Q2342494
USER
Which diseases were min number of publications and collectables mainly about ?
(c(Q732577)|c(Q2342494),P921,c(Q12136))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12136
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12136
type Q2342494
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12136'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) ?d WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?y WHERE { { ?v property:P921 ?y . ?y rdf:type ontology:Q12136 . ?v rdf:type ontology:Q732577 } UNION { ?v property:P921 ?y . ?y rdf:type ontology:Q12136 . ?v rdf:type ontology:Q2342494 } } GROUP BY ?y } . FILTER ( ?p = ?a ) }
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type disease
type publication
action find_reverse_tuple_counts
relation main subject
type disease
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'disease'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) ?d WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:publication ) ( ontology:collectable ) } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?y WHERE { { ?v property:main_subject ?y . ?y rdf:type ontology:disease . ?v rdf:type ontology:publication } UNION { ?v property:main_subject ?y . ?y rdf:type ontology:disease . ?v rdf:type ontology:collectable } } GROUP BY ?y } . FILTER ( ?p = ?a ) }
[]
disease publication collectable
Q41112 Q12078 Q1869874
SYSTEM
schizophrenia, cancer, insomnia
Q4133283 Q366964 Q18967413 Q642598 Q12198 Q1345671 Q41112 Q708165 Q3073143 Q6467269 Q609748 Q573557 Q13604751 Q852163 Q182672 Q252185 Q922971 Q3281402 Q33487 Q166005 Q1869874 Q21281037 Q12078 Q12133 Q2389289 Q877796 Q2820891 Q5861610
(c(Q732577)|c(Q2342494),P921,c(Q12136))
action argmin
action union
action find_reverse_tuple_counts
relation P921
type Q12136
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12136
type Q2342494
Min number of publications and collectables mainly about were [ANSWERS]
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12136'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) ?d WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:Q732577 ) ( ontology:Q2342494 ) } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?y WHERE { { ?v property:P921 ?y . ?y rdf:type ontology:Q12136 . ?v rdf:type ontology:Q732577 } UNION { ?v property:P921 ?y . ?y rdf:type ontology:Q12136 . ?v rdf:type ontology:Q2342494 } } GROUP BY ?y } . FILTER ( ?p = ?a ) }
Speech sound disorder adrenoleukodystrophy RNA virus infectious disease Münchausen syndrome sexually transmitted disease tropical disease schizophrenia Arthrogryposis Mayaro virus disease Laboratory animal allergy emerging infectious disease Candaulism lovesickness lower back pain zoonosis erotomania Acanthamoeba keratitis vector-borne disease homophobia xenophobia insomnia biliary disease cancer deafness occupational injury repetitive strain injury amoebic liver abscess Bwamba Fever
Min number of publications and collectables mainly about were schizophrenia, cancer and insomnia
schizophrenia cancer insomnia
action argmin
action union
action find_reverse_tuple_counts
relation main subject
type disease
type publication
action find_reverse_tuple_counts
relation main subject
type disease
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'disease'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MIN ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) ?d WHERE { ?j rdf:type ?m . VALUES ( ?m ) { ( ontology:publication ) ( ontology:collectable ) } } GROUP BY ?d } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) ?y WHERE { { ?v property:main_subject ?y . ?y rdf:type ontology:disease . ?v rdf:type ontology:publication } UNION { ?v property:main_subject ?y . ?y rdf:type ontology:disease . ?v rdf:type ontology:collectable } } GROUP BY ?y } . FILTER ( ?p = ?a ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q418913
P2175
Q79529
USER
Are Armodafinil used for the treatment of those diseases ?
(Q418913,P2175,Q41112) (Q418913,P2175,Q12078) (Q418913,P2175,Q1869874)
action is_in
entity prev_answer
action find
entity Q418913
relation P2175
['Q418913', 'P2175', 'Q41112'] ['Q418913', 'P2175', 'Q12078'] ['Q418913', 'P2175', 'Q1869874']
ASK WHERE { VALUES ( ?g ) { ( resource:Q4133283 ) ( resource:Q366964 ) ( resource:Q18967413 ) } . resource:Q418913 property:P2175 ?g }
Armodafinil
action is_in
entity prev_answer
action find
entity Armodafinil
relation medical condition treated
['Armodafinil', 'medical condition treated', 'schizophrenia'] ['Armodafinil', 'medical condition treated', 'cancer'] ['Armodafinil', 'medical condition treated', 'insomnia']
ASK WHERE { VALUES ( ?g ) { ( resource:Speech_sound_disorder ) ( resource:adrenoleukodystrophy ) ( resource:RNA_virus_infectious_disease ) } . resource:Armodafinil property:medical_condition_treated ?g }
[]
chemical substance
SYSTEM
YES
(Q418913,P2175,Q41112) (Q418913,P2175,Q12078) (Q418913,P2175,Q1869874)
action is_in
entity prev_answer
action find
entity Q418913
relation P2175
[ANSWER]
['Q418913', 'P2175', 'Q41112'] ['Q418913', 'P2175', 'Q12078'] ['Q418913', 'P2175', 'Q1869874']
ASK WHERE { VALUES ( ?g ) { ( resource:Q4133283 ) ( resource:Q366964 ) ( resource:Q18967413 ) } . resource:Q418913 property:P2175 ?g }
Yes
action is_in
entity prev_answer
action find
entity Armodafinil
relation medical condition treated
['Armodafinil', 'medical condition treated', 'schizophrenia'] ['Armodafinil', 'medical condition treated', 'cancer'] ['Armodafinil', 'medical condition treated', 'insomnia']
ASK WHERE { VALUES ( ?g ) { ( resource:Speech_sound_disorder ) ( resource:adrenoleukodystrophy ) ( resource:RNA_virus_infectious_disease ) } . resource:Armodafinil property:medical_condition_treated ?g }
[]