Simple Question (Direct)
Simple Question
Q354197
P410
Q4189293
USER
Which is the title held by Jisaburō Ozawa ?
(Q354197,P410,c(Q4189293))
action filter_type
action find
entity Q354197
relation P410
type Q4189293
['Q354197', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?t WHERE { resource:Q354197 property:P410 ?t . ?t rdf:type ontology:Q4189293 }
Jisaburō Ozawa
action filter_type
action find
entity Jisaburō Ozawa
relation military rank
type title
['Jisaburō Ozawa', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?t WHERE { resource:Jisaburō_Ozawa property:military_rank ?t . ?t rdf:type ontology:title }
[]
title
Q214443
SYSTEM
vice admiral
Q214443
(Q354197,P410,c(Q4189293))
action filter_type
action find
entity Q354197
relation P410
type Q4189293
The [ANSWER] is the title held by Jisaburō Ozawa
['Q354197', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?t WHERE { resource:Q354197 property:P410 ?t . ?t rdf:type ontology:Q4189293 }
vice admiral
The vice admiral is the title held by Jisaburō Ozawa
vice admiral
action filter_type
action find
entity Jisaburō Ozawa
relation military rank
type title
['Jisaburō Ozawa', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?t WHERE { resource:Jisaburō_Ozawa property:military_rank ?t . ?t rdf:type ontology:title }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q354197
P710
Q645883
USER
What event did Jisaburō Ozawa particiate in ?
(c(Q645883),P710,Q354197)
action filter_type
action find_reverse
entity Q354197
relation P710
type Q645883
[{'concept': 'Q645883'}, 'P710', 'Q354197']
SELECT DISTINCT ?p WHERE { ?p property:P710 resource:Q354197 . ?p rdf:type ontology:Q645883 }
Jisaburō Ozawa
action filter_type
action find_reverse
entity Jisaburō Ozawa
relation participant
type military operation
[{'concept': 'military operation'}, 'participant', 'Jisaburō Ozawa']
SELECT DISTINCT ?p WHERE { ?p property:participant resource:Jisaburō_Ozawa . ?p rdf:type ontology:military_operation }
[]
military operation
Q371573
SYSTEM
Philippines campaign of 1944–45
Q371573
(c(Q645883),P710,Q354197)
action filter_type
action find_reverse
entity Q354197
relation P710
type Q645883
Jisaburō Ozawa particiated the [ANSWER]
[{'concept': 'Q645883'}, 'P710', 'Q354197']
SELECT DISTINCT ?p WHERE { ?p property:P710 resource:Q354197 . ?p rdf:type ontology:Q645883 }
Philippines campaign of 1944–45
Jisaburō Ozawa particiated the Philippines campaign of 1944–45
Philippines campaign of 1944–45
action filter_type
action find_reverse
entity Jisaburō Ozawa
relation participant
type military operation
[{'concept': 'military operation'}, 'participant', 'Jisaburō Ozawa']
SELECT DISTINCT ?p WHERE { ?p property:participant resource:Jisaburō_Ozawa . ?p rdf:type ontology:military_operation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q1190554 Q350604 Q645883
USER
How many military operations are a part of more number of events or armed conflicts than that military operation ?
(c(Q645883),P361,c(Q1190554)|c(Q350604))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q645883
type Q1190554
action find_tuple_counts
relation P361
type Q645883
type Q350604
action count
action filter_multi_types
action find
entity Q371573
relation P361
type Q1190554
type Q350604
[{'concept': 'Q645883'}, 'P361', [{'concept': 'Q1190554'}, {'concept': 'Q350604'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { FILTER ( ?i > ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q371573 property:P361 ?n . { VALUES ( ?y ) { ( ontology:Q1190554 ) ( ontology:Q350604 ) } . ?n rdf:type ?y } } } . { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?i ) WHERE { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:Q350604 ) ( ontology:Q1190554 ) } } GROUP BY ?v } }
action count
action greater
action union
action find_tuple_counts
relation part of
type military operation
type event
action find_tuple_counts
relation part of
type military operation
type armed conflict
action count
action filter_multi_types
action find
entity Philippines campaign of 1944–45
relation part of
type event
type armed conflict
[{'concept': 'military operation'}, 'part of', [{'concept': 'event'}, {'concept': 'armed conflict'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { FILTER ( ?i > ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Philippines_campaign_of_1944–45 property:part_of ?n . { VALUES ( ?y ) { ( ontology:event ) ( ontology:armed_conflict ) } . ?n rdf:type ?y } } } . { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?i ) WHERE { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:armed_conflict ) ( ontology:event ) } } GROUP BY ?v } }
[]
event armed conflict military operation
SYSTEM
50
Q323772 Q3651707 Q2917367 Q5487383 Q15095260 Q7737862 Q20982133 Q2005365 Q25040984 Q3247581 Q2963048 Q7100590 Q705319 Q249708 Q481236 Q625798 Q705222 Q696664 Q6148020 Q2994973 Q582613 Q841559 Q371573 Q714211 Q700499 Q158287 Q569689 Q17195717 Q23701420 Q2632694 Q3651694 Q4127810 Q3513572 Q10265867 Q7100589 Q1627032 Q23899364 Q529723 Q2883152 Q700207 Q5403538 Q16009400 Q705165 Q7122359 Q2583202 Q3651704 Q6554579 Q9068360 Q6556186 Q4497792
(c(Q645883),P361,c(Q1190554)|c(Q350604))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q645883
type Q1190554
action find_tuple_counts
relation P361
type Q645883
type Q350604
action count
action filter_multi_types
action find
entity Q371573
relation P361
type Q1190554
type Q350604
[ANSWER]
[{'concept': 'Q645883'}, 'P361', [{'concept': 'Q1190554'}, {'concept': 'Q350604'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { FILTER ( ?i > ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Q371573 property:P361 ?n . { VALUES ( ?y ) { ( ontology:Q1190554 ) ( ontology:Q350604 ) } . ?n rdf:type ?y } } } . { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?i ) WHERE { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:Q350604 ) ( ontology:Q1190554 ) } } GROUP BY ?v } }
Donbass Strategic Offensive (August 1943) Humaitá Campaign Salamaua–Lae campaign Operation Winter '94 Aleppo offensive The Great Naktong Offensive 1663 raid on the Perekop fortress Mato Grosso Campaign Black Sea Raid Campaigns of 1794 in the French Revolutionary Wars March to Reims Order of battle for Campaign of Northern and Eastern Honan 1938 1939–1940 Winter Offensive Aleutian Islands Campaign Carolean Death March Western Desert Campaign Petsamo–Kirkenes Offensive Malayan Campaign Nankou Campaign Cambodian Campaign Livonian campaign of Stephen Báthory Serbian Campaign of World War I Philippines campaign of 1944–45 Yelnya Offensive Zhejiang-Jiangxi campaign Case Blue Bombing of Singapore Operation Zarb-e-Azb Aleppo offensive Flămânda Offensive Campaign of the Hills Second Guangxi Campaign Operation Orkan 91 Dezembrada Order of battle for Campaign of Northern and Eastern Henan 1938 Jiangqiao Campaign Northwestern Europe Campaign Al-Anfal Campaign Pikysyry Campaign Suiyuan Campaign Ethiopian Christmas Offensive retreat from Russia Bombing of Chongqing Pacific Coast Campaign Pescadores Campaign Corrientes Campaign Linnan Campaign Laguna Retreat Operation Tiger (1992) Khingan-Mukden Offensive Operation
50
action count
action greater
action union
action find_tuple_counts
relation part of
type military operation
type event
action find_tuple_counts
relation part of
type military operation
type armed conflict
action count
action filter_multi_types
action find
entity Philippines campaign of 1944–45
relation part of
type event
type armed conflict
[{'concept': 'military operation'}, 'part of', [{'concept': 'event'}, {'concept': 'armed conflict'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?f ) WHERE { FILTER ( ?i > ?c ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { resource:Philippines_campaign_of_1944–45 property:part_of ?n . { VALUES ( ?y ) { ( ontology:event ) ( ontology:armed_conflict ) } . ?n rdf:type ?y } } } . { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?i ) WHERE { ?d rdf:type ?t . VALUES ( ?t ) { ( ontology:armed_conflict ) ( ontology:event ) } } GROUP BY ?v } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P88
Q502895 Q87167 Q13226383
USER
How many people commissioned atleast 1 manuscripts and facilities ?
(c(Q87167)|c(Q13226383),P88,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q87167
action find_reverse_tuple_counts
relation P88
type Q502895
type Q13226383
value 1
[[{'concept': 'Q87167'}, {'concept': 'Q13226383'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:Q87167 ) ( ontology:Q13226383 ) } } GROUP BY ?l } . FILTER ( ?o >= 1 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type manuscript
action find_reverse_tuple_counts
relation commissioned by
type common name
type facility
value 1
[[{'concept': 'manuscript'}, {'concept': 'facility'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:manuscript ) ( ontology:facility ) } } GROUP BY ?l } . FILTER ( ?o >= 1 ) }
[]
common name manuscript facility
SYSTEM
12
Q938624 Q289527 Q44961 Q71578 Q36620 Q460215 Q930796 Q1002546 Q346761 Q298892 Q692291 Q729743
(c(Q87167)|c(Q13226383),P88,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q87167
action find_reverse_tuple_counts
relation P88
type Q502895
type Q13226383
value 1
[ANSWER]
[[{'concept': 'Q87167'}, {'concept': 'Q13226383'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:Q87167 ) ( ontology:Q13226383 ) } } GROUP BY ?l } . FILTER ( ?o >= 1 ) }
Margaret of Burgundy, Dauphine of France Étienne Chevalier Charles Theodore, Elector of Bavaria Johannes Noviforensis Tycho Brahe Charles I, Duke of Savoy Jean Le Maingre Margaret of Foix John, Duke of Berry Philip the Bold Charles I, Duke of Bourbon Georges d'Amboise
12
action count
action atleast
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type manuscript
action find_reverse_tuple_counts
relation commissioned by
type common name
type facility
value 1
[[{'concept': 'manuscript'}, {'concept': 'facility'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?j ) AS ?o ) WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:manuscript ) ( ontology:facility ) } } GROUP BY ?l } . FILTER ( ?o >= 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q362
P361
Q198 Q645883
USER
How many wars are lesser number of military operations a part of than World War II ?
(c(Q645883),P361,c(Q198))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action count
action filter_type
action find_reverse
entity Q362
relation P361
type Q645883
[{'concept': 'Q645883'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P361 ?m . ?m rdf:type ontology:Q198 . ?h rdf:type ontology:Q645883 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:P361 resource:Q362 . ?k rdf:type ontology:Q645883 } } . FILTER ( ?f < ?n ) }
World War II
action count
action less
action find_reverse_tuple_counts
relation part of
type war
type military operation
action count
action filter_type
action find_reverse
entity World War II
relation part of
type military operation
[{'concept': 'military operation'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:part_of ?m . ?m rdf:type ontology:war . ?h rdf:type ontology:military_operation } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:part_of resource:World_War_II . ?k rdf:type ontology:military_operation } } . FILTER ( ?f < ?n ) }
[]
war military operation
SYSTEM
39
Q8683 Q211855 Q4783165 Q795269 Q3778746 Q920894 Q81545 Q10859 Q18121212 Q361 Q1021160 Q17984356 Q1072889 Q1758829 Q209297 Q242352 Q2105495 Q5334383 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q1432624 Q2086498 Q1238338 Q15059994 Q1049945 Q8676 Q1127302 Q1052332 Q475678 Q743768 Q213394 Q17507684 Q18159629 Q2672972 Q243620 Q79911
(c(Q645883),P361,c(Q198))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action count
action filter_type
action find_reverse
entity Q362
relation P361
type Q645883
[ANSWER]
[{'concept': 'Q645883'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P361 ?m . ?m rdf:type ontology:Q198 . ?h rdf:type ontology:Q645883 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:P361 resource:Q362 . ?k rdf:type ontology:Q645883 } } . FILTER ( ?f < ?n ) }
Cold War Finnish Civil War Arab Cold War Sierra Leone Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War American-led intervention in Syria World War I Armagnac–Burgundian Civil War Iraqi Civil War Chilean War of Independence urban guerrilla warfare Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Ecuadorian War of Independence Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War Genkō War First Barons' War Caesar's Civil War Iran–Israel proxy conflict Jacobite rising of 1745 American Civil War Estonian War of Independence War in Somalia Mexican Drug War The Anarchy Sri Lankan Civil War military intervention against ISIL American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War
39
action count
action less
action find_reverse_tuple_counts
relation part of
type war
type military operation
action count
action filter_type
action find_reverse
entity World War II
relation part of
type military operation
[{'concept': 'military operation'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:part_of ?m . ?m rdf:type ontology:war . ?h rdf:type ontology:military_operation } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:part_of resource:World_War_II . ?k rdf:type ontology:military_operation } } . FILTER ( ?f < ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1432624
P361
Q198 Q645883
USER
And what about Genkō War?
(c(Q645883),P361,c(Q198))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action count
action filter_type
action find_reverse
entity Q1432624
relation P361
type Q645883
[{'concept': 'Q645883'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:P361 ?b . ?b rdf:type ontology:Q198 . ?w rdf:type ontology:Q645883 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:P361 resource:Q1432624 . ?j rdf:type ontology:Q645883 } } . FILTER ( ?h < ?r ) }
Genkō War
action count
action less
action find_reverse_tuple_counts
relation part of
type war
type military operation
action count
action filter_type
action find_reverse
entity Genkō War
relation part of
type military operation
[{'concept': 'military operation'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:part_of ?b . ?b rdf:type ontology:war . ?w rdf:type ontology:military_operation } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:part_of resource:Genkō_War . ?j rdf:type ontology:military_operation } } . FILTER ( ?h < ?r ) }
[]
war military operation
SYSTEM
31
Q8683 Q211855 Q4783165 Q795269 Q3778746 Q920894 Q81545 Q18121212 Q1021160 Q1072889 Q1758829 Q209297 Q242352 Q2105495 Q5334383 Q2658255 Q16954835 Q208484 Q2086498 Q1238338 Q15059994 Q1049945 Q1127302 Q1052332 Q475678 Q743768 Q213394 Q17507684 Q2672972 Q243620 Q79911
(c(Q645883),P361,c(Q198))
action count
action less
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action count
action filter_type
action find_reverse
entity Q1432624
relation P361
type Q645883
[ANSWER]
[{'concept': 'Q645883'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:P361 ?b . ?b rdf:type ontology:Q198 . ?w rdf:type ontology:Q645883 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:P361 resource:Q1432624 . ?j rdf:type ontology:Q645883 } } . FILTER ( ?h < ?r ) }
Cold War Finnish Civil War Arab Cold War Sierra Leone Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War American-led intervention in Syria Armagnac–Burgundian Civil War Chilean War of Independence urban guerrilla warfare Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Ecuadorian War of Independence Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War First Barons' War Caesar's Civil War Iran–Israel proxy conflict Jacobite rising of 1745 Estonian War of Independence War in Somalia Mexican Drug War The Anarchy Sri Lankan Civil War military intervention against ISIL Uruguayan Civil War Somali Civil War Russian Civil War
31
action count
action less
action find_reverse_tuple_counts
relation part of
type war
type military operation
action count
action filter_type
action find_reverse
entity Genkō War
relation part of
type military operation
[{'concept': 'military operation'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?h ) WHERE { ?w property:part_of ?b . ?b rdf:type ontology:war . ?w rdf:type ontology:military_operation } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { ?j property:part_of resource:Genkō_War . ?j rdf:type ontology:military_operation } } . FILTER ( ?h < ?r ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q22998344 Q354197
P509 P921
Q2057971
USER
Which health problems were the cause of death of Jisaburō Ozawa and were discussed in Impact Winter ?
AND((Q354197,P509,c(Q2057971)), (Q22998344,P921,c(Q2057971)))
action filter_type
action intersection
action find
entity Q354197
relation P509
action find
entity Q22998344
relation P921
type Q2057971
{'AND': [['Q354197', 'P509', {'concept': 'Q2057971'}], ['Q22998344', 'P921', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?w WHERE { resource:Q354197 property:P509 ?w . resource:Q22998344 property:P921 ?w . ?w rdf:type ontology:Q2057971 }
Impact Winter Jisaburō Ozawa
action filter_type
action intersection
action find
entity Jisaburō Ozawa
relation cause of death
action find
entity Impact Winter
relation main subject
type health problem
{'AND': [['Jisaburō Ozawa', 'cause of death', {'concept': 'health problem'}], ['Impact Winter', 'main subject', {'concept': 'health problem'}]]}
SELECT DISTINCT ?w WHERE { resource:Jisaburō_Ozawa property:cause_of_death ?w . resource:Impact_Winter property:main_subject ?w . ?w rdf:type ontology:health_problem }
[]
health problem
Q8277
SYSTEM
multiple sclerosis
Q8277
AND((Q354197,P509,c(Q2057971)), (Q22998344,P921,c(Q2057971)))
action filter_type
action intersection
action find
entity Q354197
relation P509
action find
entity Q22998344
relation P921
type Q2057971
[ANSWER] was the cause of death of Jisaburō Ozawa and was discussed in Impact Winter
{'AND': [['Q354197', 'P509', {'concept': 'Q2057971'}], ['Q22998344', 'P921', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?w WHERE { resource:Q354197 property:P509 ?w . resource:Q22998344 property:P921 ?w . ?w rdf:type ontology:Q2057971 }
multiple sclerosis
Multiple sclerosis was the cause of death of Jisaburō Ozawa and was discussed in Impact Winter
multiple sclerosis
action filter_type
action intersection
action find
entity Jisaburō Ozawa
relation cause of death
action find
entity Impact Winter
relation main subject
type health problem
{'AND': [['Jisaburō Ozawa', 'cause of death', {'concept': 'health problem'}], ['Impact Winter', 'main subject', {'concept': 'health problem'}]]}
SELECT DISTINCT ?w WHERE { resource:Jisaburō_Ozawa property:cause_of_death ?w . resource:Impact_Winter property:main_subject ?w . ?w rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q8277 Q18032010
P2293
Q863908
USER
Does TLL1 have hereditary association with multiple sclerosis ?
(Q8277,P2293,Q18032010)
action is_in
entity Q18032010
action find
entity Q8277
relation P2293
['Q8277', 'P2293', 'Q18032010']
ASK WHERE { resource:Q8277 property:P2293 resource:Q18032010 }
multiple sclerosis TLL1
action is_in
entity TLL1
action find
entity multiple sclerosis
relation genetic association
['multiple sclerosis', 'genetic association', 'TLL1']
ASK WHERE { resource:multiple_sclerosis property:genetic_association resource:TLL1 }
[]
nucleic acid sequence
SYSTEM
YES
(Q8277,P2293,Q18032010)
action is_in
entity Q18032010
action find
entity Q8277
relation P2293
[ANSWER]
['Q8277', 'P2293', 'Q18032010']
ASK WHERE { resource:Q8277 property:P2293 resource:Q18032010 }
Yes
action is_in
entity TLL1
action find
entity multiple sclerosis
relation genetic association
['multiple sclerosis', 'genetic association', 'TLL1']
ASK WHERE { resource:multiple_sclerosis property:genetic_association resource:TLL1 }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8277
P2176
Q8386
USER
Which drugs are prescribed for that health problem ?
action filter_type
action find
entity Q8277
relation P2176
type Q8386
SELECT DISTINCT ?l WHERE { resource:Q8277 property:P2176 ?l . ?l rdf:type ontology:Q8386 }
multiple sclerosis
action filter_type
action find
entity multiple sclerosis
relation drug used for treatment
type drug
SELECT DISTINCT ?l WHERE { resource:multiple_sclerosis property:drug_used_for_treatment ?l . ?l rdf:type ontology:drug }
[]
drug
Q412323 Q139347 Q408524
SYSTEM
Rituximab, Cholecalciferol, cyclophosphamide
Q2450337 Q73972 Q418123 Q421274 Q139347 Q420164 Q252251 Q413717 Q4567614 Q417222 Q372539 Q239426 Q7444755 Q386119 Q412323 Q1851162 Q212272 Q3077133 Q22075846 Q18939 Q2697833 Q176301 Q422112 Q414030 Q410352 Q408524
action filter_type
action find
entity Q8277
relation P2176
type Q8386
[ANSWERS] are prescribed for that health problem
SELECT DISTINCT ?l WHERE { resource:Q8277 property:P2176 ?l . ?l rdf:type ontology:Q8386 }
Interferon beta-1a Hydroxocobalamin dimethyl fumarate dantrolene Cholecalciferol Alemtuzumab Cyanocobalamin Baclofen mycophenolate mofetil methylprednisolone fampridine mitoxantrone Secukinumab Natalizumab Rituximab Interferon beta-1b hydroxyurea teriflunomide Peginterferon beta-1a azathioprine Abatacept oxcarbazepine methylphenidate Cladribine gabapentin cyclophosphamide
Rituximab, Cholecalciferol and cyclophosphamide are prescribed for that health problem
Rituximab Cholecalciferol cyclophosphamide
action filter_type
action find
entity multiple sclerosis
relation drug used for treatment
type drug
SELECT DISTINCT ?l WHERE { resource:multiple_sclerosis property:drug_used_for_treatment ?l . ?l rdf:type ontology:drug }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P2175
Q12136 Q8386
USER
Which diseases require atleast 23 drugs to be prescribed ?
(c(Q8386),P2175,c(Q12136))
action atleast
action find_reverse_tuple_counts
relation P2175
type Q12136
type Q8386
value 23
[{'concept': 'Q8386'}, 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?e ) WHERE { ?v rdf:type ontology:Q12136 . ?d rdf:type ontology:Q8386 . ?d property:P2175 ?v } GROUP BY ?v } . FILTER ( ?e >= 23 ) }
action atleast
action find_reverse_tuple_counts
relation medical condition treated
type disease
type drug
value 23
[{'concept': 'drug'}, 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?e ) WHERE { ?v rdf:type ontology:disease . ?d rdf:type ontology:drug . ?d property:medical_condition_treated ?v } GROUP BY ?v } . FILTER ( ?e >= 23 ) }
[]
disease drug
Q41112 Q12078 Q6717002
SYSTEM
schizophrenia, cancer, MODY 2
Q41112 Q18557998 Q6717002 Q1869874 Q12078 Q2622199 Q18975220
(c(Q8386),P2175,c(Q12136))
action atleast
action find_reverse_tuple_counts
relation P2175
type Q12136
type Q8386
value 23
[ANSWERS] require atleast 23 drugs to be prescribed
[{'concept': 'Q8386'}, 'P2175', {'concept': 'Q12136'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?e ) WHERE { ?v rdf:type ontology:Q12136 . ?d rdf:type ontology:Q8386 . ?d property:P2175 ?v } GROUP BY ?v } . FILTER ( ?e >= 23 ) }
schizophrenia lymphosarcoma MODY 2 insomnia cancer upper respiratory tract infection Escherichia coli infectious disease
Schizophrenia, cancer and MODY 2 require atleast 23 drugs to be prescribed
schizophrenia cancer MODY 2
action atleast
action find_reverse_tuple_counts
relation medical condition treated
type disease
type drug
value 23
[{'concept': 'drug'}, 'medical condition treated', {'concept': 'disease'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?e ) WHERE { ?v rdf:type ontology:disease . ?d rdf:type ontology:drug . ?d property:medical_condition_treated ?v } GROUP BY ?v } . FILTER ( ?e >= 23 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q41112 Q12078 Q6717002
P2175
Q8386
USER
Which drugs are used for treatment of schizophrenia, cancer and MODY 2 ?
(c(Q8386),P2175,Q41112) (c(Q8386),P2175,Q12078) (c(Q8386),P2175,Q6717002)
action union
action filter_type
action find_reverse
entity Q41112
relation P2175
type Q8386
action filter_type
action find_reverse
entity Q12078
relation P2175
type Q8386
action filter_type
action find_reverse
entity Q6717002
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q41112'] [{'concept': 'Q8386'}, 'P2175', 'Q12078'] [{'concept': 'Q8386'}, 'P2175', 'Q6717002']
SELECT DISTINCT ?m WHERE { { ?m property:P2175 resource:Q41112 . ?m rdf:type ontology:Q8386 } UNION { ?m property:P2175 resource:Q12078 . ?m rdf:type ontology:Q8386 } }
schizophrenia cancer MODY 2
action union
action filter_type
action find_reverse
entity schizophrenia
relation medical condition treated
type drug
action filter_type
action find_reverse
entity cancer
relation medical condition treated
type drug
action filter_type
action find_reverse
entity MODY 2
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'schizophrenia'] [{'concept': 'drug'}, 'medical condition treated', 'cancer'] [{'concept': 'drug'}, 'medical condition treated', 'MODY 2']
SELECT DISTINCT ?m WHERE { { ?m property:medical_condition_treated resource:schizophrenia . ?m rdf:type ontology:drug } UNION { ?m property:medical_condition_treated resource:cancer . ?m rdf:type ontology:drug } }
[]
drug
Q407972 Q251347 Q670131
SYSTEM
chlorpromazine, haloperidol, simvastatin
Q425154 Q411188 Q221361 Q423292 Q6821618 Q58614 Q407972 Q251347 Q423520 Q1752915 Q693482 Q407841 Q190067 Q412443 Q201872 Q4199443 Q2608288 Q176301 Q408801 Q407988 Q417884 Q418192 Q5263885 Q58376 Q58375 Q4673284 Q205517 Q423809 Q410412 Q144085 Q2924764 Q411159 Q593166 Q410441 Q1235195 Q15366934 Q407541 Q418702 Q420164 Q417775 Q422222 Q423762 Q241150 Q6808975 Q2070286 Q410352 Q412486 Q5984881 Q2178381 Q4689286 Q418819 Q419319 Q216935 Q4882925 Q419940 Q4830631 Q422112 Q963093 Q139347 Q190012 Q4391540 Q413299 Q419394 Q412534 Q415869 Q417824 Q1996756 Q422252 Q3151081 Q905901 Q421862 Q7699074 Q412323 Q3891664 Q421052 Q5134875 Q240642 Q2459042 Q417296 Q13896859 Q408801 Q11426176 Q424972 Q423111 Q32089 Q238512 Q4567614 Q412963 Q905835 Q5186964 Q425470 Q186969 Q11711607 Q894611 Q423989 Q420207 Q417222 Q1181878 Q5303688 Q412616 Q1592932 Q420296 Q3611854 Q7083106 Q384295 Q21011233 Q417555 Q7739 Q423417 Q20801757 Q5383794 Q422232 Q7814101 Q1075324 Q420542 Q417762 Q417765 Q410965 Q422222 Q670131 Q420626 Q7844989 Q693482 Q419948 Q409898 Q275926 Q139347 Q2754775 Q4673274 Q772735 Q419832 Q417317 Q5373824 Q3108899 Q241374 Q2254797 Q338005 Q414275 Q907104 Q2062094 Q18216 Q423930 Q424771 Q2526479 Q420262 Q4712362 Q19484 Q425027 Q419724 Q155472 Q2195995 Q6042242 Q3492616 Q421119 Q419769 Q411347 Q155746 Q384295 Q21011228
(c(Q8386),P2175,Q41112) (c(Q8386),P2175,Q12078) (c(Q8386),P2175,Q6717002)
action union
action filter_type
action find_reverse
entity Q41112
relation P2175
type Q8386
action filter_type
action find_reverse
entity Q12078
relation P2175
type Q8386
action filter_type
action find_reverse
entity Q6717002
relation P2175
type Q8386
[ANSWERS] are used for treatment of schizophrenia, cancer and MODY 2
[{'concept': 'Q8386'}, 'P2175', 'Q41112'] [{'concept': 'Q8386'}, 'P2175', 'Q12078'] [{'concept': 'Q8386'}, 'P2175', 'Q6717002']
SELECT DISTINCT ?m WHERE { { ?m property:P2175 resource:Q41112 . ?m rdf:type ontology:Q8386 } UNION { ?m property:P2175 resource:Q12078 . ?m rdf:type ontology:Q8386 } }
Tocilizumab aripiprazole clozapine paliperidone mesoridazine loxapine chlorpromazine haloperidol perphenazine trifluoperazine roflumilast reserpine Δ9-tetrahydrocannabinol risperidone Olanzapine iloperidone thiothixene oxcarbazepine celecoxib clonazepam cyproheptadine bexarotene deserpidine fluphenazine thioridazine Acetophenazine ziprasidone Chlorprothixene carbamazepine pimozide brexpiprazole famotidine molindone modafinil Romiplostim carfilzomib fentanyl Basiliximab Alemtuzumab Panitumumab Digoxin Paclitaxel aminoglutethimide megestrol acetate vismodegib gabapentin allopurinol ibrutinib Darbepoetin alfa Aflibercept exemestane Bortezomib lidocaine Belinostat dasatinib axitinib methylphenidate sulindac Cholecalciferol adenosine Interferon Alfa-2b, Recombinant Bevacizumab sevoflurane carvedilol carmustine gefitinib enzalutamide dexamethasone Filgrastim vorinostat ribavirin temsirolimus Rituximab regorafenib Everolimus clofarabine valproic acid Ipilimumab febuxostat Pembrolizumab celecoxib prednisolone prednisone vemurafenib Sirolimus 5-fluorouracil mycophenolate mofetil cabazitaxel plerixafor crizotinib pentostatin ibuprofen Ixabepilone bosutinib diethylstilbestrol capecitabine methylprednisolone decitabine doxercalciferol Trastuzumab Pegfilgrastim Cetuximab alitretinoin olaparib gemfibrozil ceritinib teniposide Arsenic trioxide Imiquimod Secretin Epoetin alfa methotrexate tolazamide chlorpropamide ticagrelor Exenatide pioglitazone Insulin Detemir Digoxin simvastatin glibenclamide Troglitazone roflumilast torsemide dapagliflozin bumetanide Cholecalciferol Insulin Aspart acetohexamide miglitol sitagliptin Insulin Glargine empagliflozin glipizide ursodeoxycholic acid Nateglinide acarbose tolbutamide ranolazine Pramlintide acetylsalicylic acid hydrochlorothiazide Rosiglitazone Liraglutide rivaroxaban Albiglutide metformin Glimepiride fenofibrate Valsartan repaglinide Insulin Glulisine Insulin Lispro captopril bosentan amlodipine paricalcitol gemfibrozil dulaglutide
Chlorpromazine, haloperidol and simvastatin are used for treatment of schizophrenia, cancer and MODY 2
chlorpromazine haloperidol simvastatin
action union
action filter_type
action find_reverse
entity schizophrenia
relation medical condition treated
type drug
action filter_type
action find_reverse
entity cancer
relation medical condition treated
type drug
action filter_type
action find_reverse
entity MODY 2
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'schizophrenia'] [{'concept': 'drug'}, 'medical condition treated', 'cancer'] [{'concept': 'drug'}, 'medical condition treated', 'MODY 2']
SELECT DISTINCT ?m WHERE { { ?m property:medical_condition_treated resource:schizophrenia . ?m rdf:type ontology:drug } UNION { ?m property:medical_condition_treated resource:cancer . ?m rdf:type ontology:drug } }
[]