Simple Question (Direct)
Simple Question
Q22335977
P681
Q15989253
USER
What is a component of nitric oxide reductase subunit B    lpg2236 ?
(Q22335977,P681,c(Q15989253))
action filter_type
action find
entity Q22335977
relation P681
type Q15989253
['Q22335977', 'P681', {'concept': 'Q15989253'}]
SELECT DISTINCT ?y WHERE { resource:Q22335977 property:P681 ?y . ?y rdf:type ontology:Q15989253 }
nitric oxide reductase subunit B    lpg2236
action filter_type
action find
entity nitric oxide reductase subunit B    lpg2236
relation cell component
type part
['nitric oxide reductase subunit B    lpg2236', 'cell component', {'concept': 'part'}]
SELECT DISTINCT ?y WHERE { resource:nitric_oxide_reductase_subunit_B____lpg2236 property:cell_component ?y . ?y rdf:type ontology:part }
[]
part
Q14349455
SYSTEM
membrane
Q14349455
(Q22335977,P681,c(Q15989253))
action filter_type
action find
entity Q22335977
relation P681
type Q15989253
A component of nitric oxide reductase subunit B lpg2236 is a [ANSWER]
['Q22335977', 'P681', {'concept': 'Q15989253'}]
SELECT DISTINCT ?y WHERE { resource:Q22335977 property:P681 ?y . ?y rdf:type ontology:Q15989253 }
membrane
A component of nitric oxide reductase subunit B lpg2236 is a membrane
membrane
action filter_type
action find
entity nitric oxide reductase subunit B    lpg2236
relation cell component
type part
['nitric oxide reductase subunit B    lpg2236', 'cell component', {'concept': 'part'}]
SELECT DISTINCT ?y WHERE { resource:nitric_oxide_reductase_subunit_B____lpg2236 property:cell_component ?y . ?y rdf:type ontology:part }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22335977
P703
Q631147
USER
What is the taxon to which nitric oxide reductase subunit B    lpg2236 belongs to ?
(Q22335977,P703,c(Q631147))
action filter_type
action find
entity Q22335977
relation P703
type Q631147
['Q22335977', 'P703', {'concept': 'Q631147'}]
SELECT DISTINCT ?k WHERE { resource:Q22335977 property:P703 ?k . ?k rdf:type ontology:Q631147 }
nitric oxide reductase subunit B    lpg2236
action filter_type
action find
entity nitric oxide reductase subunit B    lpg2236
relation found in taxon
type infraspecific name
['nitric oxide reductase subunit B    lpg2236', 'found in taxon', {'concept': 'infraspecific name'}]
SELECT DISTINCT ?k WHERE { resource:nitric_oxide_reductase_subunit_B____lpg2236 property:found_in_taxon ?k . ?k rdf:type ontology:infraspecific_name }
[]
infraspecific name
Q21102919
SYSTEM
Legionella pneumophila subsp. pneumophila str. Philadelphia 1
Q21102919
(Q22335977,P703,c(Q631147))
action filter_type
action find
entity Q22335977
relation P703
type Q631147
1 [ANSWER]
['Q22335977', 'P703', {'concept': 'Q631147'}]
SELECT DISTINCT ?k WHERE { resource:Q22335977 property:P703 ?k . ?k rdf:type ontology:Q631147 }
Legionella pneumophila subsp. pneumophila str. Philadelphia 1
1 Legionella pneumophila subsp. pneumophila str. Philadelphia 1
Legionella pneumophila subsp. pneumophila str. Philadelphia 1
action filter_type
action find
entity nitric oxide reductase subunit B    lpg2236
relation found in taxon
type infraspecific name
['nitric oxide reductase subunit B    lpg2236', 'found in taxon', {'concept': 'infraspecific name'}]
SELECT DISTINCT ?k WHERE { resource:nitric_oxide_reductase_subunit_B____lpg2236 property:found_in_taxon ?k . ?k rdf:type ontology:infraspecific_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q23407726
Q631147
USER
And what about hydrolase    CLC_3322?
(Q23407726,P703,c(Q631147))
action filter_type
action find
entity Q23407726
relation P703
type Q631147
['Q23407726', 'P703', {'concept': 'Q631147'}]
SELECT DISTINCT ?n WHERE { resource:Q23407726 property:P703 ?n . ?n rdf:type ontology:Q631147 }
hydrolase    CLC_3322
action filter_type
action find
entity hydrolase    CLC_3322
relation found in taxon
type infraspecific name
['hydrolase    CLC_3322', 'found in taxon', {'concept': 'infraspecific name'}]
SELECT DISTINCT ?n WHERE { resource:hydrolase____CLC_3322 property:found_in_taxon ?n . ?n rdf:type ontology:infraspecific_name }
[]
infraspecific name
Q21102974
SYSTEM
Clostridium botulinum A str. Hall
Q21102974
(Q23407726,P703,c(Q631147))
action filter_type
action find
entity Q23407726
relation P703
type Q631147
[ANSWER]
['Q23407726', 'P703', {'concept': 'Q631147'}]
SELECT DISTINCT ?n WHERE { resource:Q23407726 property:P703 ?n . ?n rdf:type ontology:Q631147 }
Clostridium botulinum A str. Hall
Clostridium botulinum A str. Hall
action filter_type
action find
entity hydrolase    CLC_3322
relation found in taxon
type infraspecific name
['hydrolase    CLC_3322', 'found in taxon', {'concept': 'infraspecific name'}]
SELECT DISTINCT ?n WHERE { resource:hydrolase____CLC_3322 property:found_in_taxon ?n . ?n rdf:type ontology:infraspecific_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q757568
P361
Q58778 Q15989253
USER
How many systems are around the same number of parts a portion of as Atomic units ?
(c(Q15989253),P361,c(Q58778))
action count
action approx
action find_reverse_tuple_counts
relation P361
type Q58778
type Q15989253
action count
action filter_type
action find
entity Q757568
relation P361
type Q58778
[{'concept': 'Q15989253'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:P361 ?j . ?j rdf:type ontology:Q58778 . ?p rdf:type ontology:Q15989253 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q757568 property:P361 ?q . ?q rdf:type ontology:Q58778 } } . FILTER ( ?m = ?a ) }
Atomic units
action count
action approx
action find_reverse_tuple_counts
relation part of
type system
type part
action count
action filter_type
action find
entity Atomic units
relation part of
type system
[{'concept': 'part'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:part_of ?j . ?j rdf:type ontology:system . ?p rdf:type ontology:part } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Atomic_units property:part_of ?q . ?q rdf:type ontology:system } } . FILTER ( ?m = ?a ) }
[]
system part
SYSTEM
63
Q829055 Q757568 Q2251494 Q396622 Q1116609 Q1824206 Q856625 Q468999 Q289 Q939202 Q3234036 Q730906 Q192161 Q1213508 Q622662 Q12457 Q483426 Q1415395 Q607081 Q2151621 Q6456916 Q11451 Q720362 Q2595720 Q1780543 Q8091 Q940913 Q28108 Q26240 Q16203461 Q1127794 Q2518196 Q220695 Q601401 Q161779 Q889737 Q16782623 Q620565 Q1370826 Q1016708 Q27666180 Q1368944 Q126793 Q746359 Q5466615 Q1 Q14290846 Q435964 Q862571 Q16070574 Q17488292 Q512417 Q1068715 Q3565868 Q8148 Q503327 Q49845 Q3477363 Q207652 Q3491904 Q1660132 Q835696 Q2285982
(c(Q15989253),P361,c(Q58778))
action count
action approx
action find_reverse_tuple_counts
relation P361
type Q58778
type Q15989253
action count
action filter_type
action find
entity Q757568
relation P361
type Q58778
[ANSWER]
[{'concept': 'Q15989253'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:P361 ?j . ?j rdf:type ontology:Q58778 . ?p rdf:type ontology:Q15989253 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q757568 property:P361 ?q . ?q rdf:type ontology:Q58778 } } . FILTER ( ?m = ?a ) }
commercial shipping Atomic units School system in Germany agribusiness United States customary units supply chain Branch of libraries Planck units television Metre–tonne–second system of units Gaussian units MKSA system of units formal language Gravitational metric system heavy industry International System of Units intranet film industry textile industry energy industry national economy agriculture silviculture hierarchy of genres communication Technology grammar continuous track political system centimetre–gram–second system of units International System of Quantities valvetrain insurance industry wholesale trade spatial reference system ground segment English units Apothecaries' system electrostatic units Burmese units of measurement electromagnetic unit system game industry retail music industry foot–pound–second system universe Imperial and US customary measurement systems Obsolete Russian units of measurement petroleum industry petrochemical industry logical system MKS system of units telecommunications network rail transport industry thermodynamic system mail aerospace industry chemical industry urban rail transit Real estate economics Deep Space Network ferrous metallurgy
63
action count
action approx
action find_reverse_tuple_counts
relation part of
type system
type part
action count
action filter_type
action find
entity Atomic units
relation part of
type system
[{'concept': 'part'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:part_of ?j . ?j rdf:type ontology:system . ?p rdf:type ontology:part } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Atomic_units property:part_of ?q . ?q rdf:type ontology:system } } . FILTER ( ?m = ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q483426
P361
Q58778 Q15989253
USER
And what about intranet?
(c(Q15989253),P361,c(Q58778))
action count
action approx
action find_reverse_tuple_counts
relation P361
type Q58778
type Q15989253
action count
action filter_type
action find
entity Q483426
relation P361
type Q58778
[{'concept': 'Q15989253'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:P361 ?d . ?d rdf:type ontology:Q58778 . ?q rdf:type ontology:Q15989253 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q483426 property:P361 ?u . ?u rdf:type ontology:Q58778 } } . FILTER ( ?n = ?s ) }
intranet
action count
action approx
action find_reverse_tuple_counts
relation part of
type system
type part
action count
action filter_type
action find
entity intranet
relation part of
type system
[{'concept': 'part'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:part_of ?d . ?d rdf:type ontology:system . ?q rdf:type ontology:part } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:intranet property:part_of ?u . ?u rdf:type ontology:system } } . FILTER ( ?n = ?s ) }
[]
system part
SYSTEM
63
Q829055 Q757568 Q2251494 Q396622 Q1116609 Q1824206 Q856625 Q468999 Q289 Q939202 Q3234036 Q730906 Q192161 Q1213508 Q622662 Q12457 Q483426 Q1415395 Q607081 Q2151621 Q6456916 Q11451 Q720362 Q2595720 Q1780543 Q8091 Q940913 Q28108 Q26240 Q16203461 Q1127794 Q2518196 Q220695 Q601401 Q161779 Q889737 Q16782623 Q620565 Q1370826 Q1016708 Q27666180 Q1368944 Q126793 Q746359 Q5466615 Q1 Q14290846 Q435964 Q862571 Q16070574 Q17488292 Q512417 Q1068715 Q3565868 Q8148 Q503327 Q49845 Q3477363 Q207652 Q3491904 Q1660132 Q835696 Q2285982
(c(Q15989253),P361,c(Q58778))
action count
action approx
action find_reverse_tuple_counts
relation P361
type Q58778
type Q15989253
action count
action filter_type
action find
entity Q483426
relation P361
type Q58778
[ANSWER]
[{'concept': 'Q15989253'}, 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:P361 ?d . ?d rdf:type ontology:Q58778 . ?q rdf:type ontology:Q15989253 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q483426 property:P361 ?u . ?u rdf:type ontology:Q58778 } } . FILTER ( ?n = ?s ) }
commercial shipping Atomic units School system in Germany agribusiness United States customary units supply chain Branch of libraries Planck units television Metre–tonne–second system of units Gaussian units MKSA system of units formal language Gravitational metric system heavy industry International System of Units intranet film industry textile industry energy industry national economy agriculture silviculture hierarchy of genres communication Technology grammar continuous track political system centimetre–gram–second system of units International System of Quantities valvetrain insurance industry wholesale trade spatial reference system ground segment English units Apothecaries' system electrostatic units Burmese units of measurement electromagnetic unit system game industry retail music industry foot–pound–second system universe Imperial and US customary measurement systems Obsolete Russian units of measurement petroleum industry petrochemical industry logical system MKS system of units telecommunications network rail transport industry thermodynamic system mail aerospace industry chemical industry urban rail transit Real estate economics Deep Space Network ferrous metallurgy
63
action count
action approx
action find_reverse_tuple_counts
relation part of
type system
type part
action count
action filter_type
action find
entity intranet
relation part of
type system
[{'concept': 'part'}, 'part of', {'concept': 'system'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:part_of ?d . ?d rdf:type ontology:system . ?q rdf:type ontology:part } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:intranet property:part_of ?u . ?u rdf:type ontology:system } } . FILTER ( ?n = ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21102919
P1542
Q2057971
USER
What do Legionella pneumophila subsp. pneumophila str. Philadelphia 1 result in ?
(Q21102919,P1542,c(Q2057971))
action filter_type
action find
entity Q21102919
relation P1542
type Q2057971
['Q21102919', 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q21102919 property:P1542 ?t . ?t rdf:type ontology:Q2057971 }
Legionella pneumophila subsp. pneumophila str. Philadelphia 1
action filter_type
action find
entity Legionella pneumophila subsp. pneumophila str. Philadelphia 1
relation cause of
type health problem
['Legionella pneumophila subsp. pneumophila str. Philadelphia 1', 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:Legionella_pneumophila_subsp._pneumophila_str._Philadelphia_1 property:cause_of ?t . ?t rdf:type ontology:health_problem }
[]
health problem
Q154882 Q3073142
SYSTEM
Legionnaires' disease, Pontiac fever
Q154882 Q3073142
(Q21102919,P1542,c(Q2057971))
action filter_type
action find
entity Q21102919
relation P1542
type Q2057971
[ANSWERS]
['Q21102919', 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { resource:Q21102919 property:P1542 ?t . ?t rdf:type ontology:Q2057971 }
Legionnaires' disease Pontiac fever
Legionnaires' disease Pontiac fever
action filter_type
action find
entity Legionella pneumophila subsp. pneumophila str. Philadelphia 1
relation cause of
type health problem
['Legionella pneumophila subsp. pneumophila str. Philadelphia 1', 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { resource:Legionella_pneumophila_subsp._pneumophila_str._Philadelphia_1 property:cause_of ?t . ?t rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q154882 Q3073142
P1995
Q1047113
USER
Which special fields are the medical specialities of those health problems ?
(Q154882,P1995,c(Q1047113)) (Q3073142,P1995,c(Q1047113))
action filter_type
action find
entity prev_answer
relation P1995
type Q1047113
['Q154882', 'P1995', {'concept': 'Q1047113'}] ['Q3073142', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1047113 . ?r property:P1995 ?y . VALUES ( ?r ) { ( resource:Q154882 ) ( resource:Q3073142 ) } }
Legionnaires' disease Pontiac fever
action filter_type
action find
entity prev_answer
relation medical specialty
type special field
["Legionnaires' disease", 'medical specialty', {'concept': 'special field'}] ['Pontiac fever', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:special_field . ?r property:medical_specialty ?y . VALUES ( ?r ) { ( resource:Legionnaires'_disease ) ( resource:Pontiac_fever ) } }
[]
special field
Q203337 Q788926 Q788926
SYSTEM
pulmonology for 1st, Infectious disease for 2nd, 3rd
Q203337 Q788926 Q788926
(Q154882,P1995,c(Q1047113)) (Q3073142,P1995,c(Q1047113))
action filter_type
action find
entity prev_answer
relation P1995
type Q1047113
[ANSWERS]
['Q154882', 'P1995', {'concept': 'Q1047113'}] ['Q3073142', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q1047113 . ?r property:P1995 ?y . VALUES ( ?r ) { ( resource:Q154882 ) ( resource:Q3073142 ) } }
pulmonology Infectious disease Infectious disease
Pulmonology, Infectious disease and Infectious disease are the medical specialities of those health problems
pulmonology Infectious disease Infectious disease
action filter_type
action find
entity prev_answer
relation medical specialty
type special field
["Legionnaires' disease", 'medical specialty', {'concept': 'special field'}] ['Pontiac fever', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:special_field . ?r property:medical_specialty ?y . VALUES ( ?r ) { ( resource:Legionnaires'_disease ) ( resource:Pontiac_fever ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q154882
P2175
Q8386
USER
Which drugs are used to cure that health problem ?
(c(Q8386),P2175,Q154882)
action filter_type
action find_reverse
entity Q154882
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q154882']
SELECT DISTINCT ?z WHERE { ?z property:P2175 resource:Q154882 . ?z rdf:type ontology:Q8386 }
Legionnaires' disease
action filter_type
action find_reverse
entity Legionnaires' disease
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', "Legionnaires' disease"]
SELECT DISTINCT ?z WHERE { ?z property:medical_condition_treated resource:Legionnaires'_disease . ?z rdf:type ontology:drug }
[]
drug
Clarification for simple ques.
Q154882
SYSTEM
Did you mean Legionnaires' disease ?
Q203337 Q788926 Q788926
(c(Q8386),P2175,Q203337) (c(Q8386),P2175,Q788926) (c(Q8386),P2175,Q788926)
[ANSWER]
[{'concept': 'Q8386'}, 'P2175', 'Q203337'] [{'concept': 'Q8386'}, 'P2175', 'Q788926'] [{'concept': 'Q8386'}, 'P2175', 'Q788926']
SELECT DISTINCT ?z WHERE { ?z property:P2175 resource:Q154882 . ?z rdf:type ontology:Q8386 }
pulmonology Infectious disease Infectious disease
Did you mean Legionnaires' disease ?
Legionnaires' disease
[{'concept': 'drug'}, 'medical condition treated', 'pulmonology'] [{'concept': 'drug'}, 'medical condition treated', 'Infectious disease'] [{'concept': 'drug'}, 'medical condition treated', 'Infectious disease']
SELECT DISTINCT ?z WHERE { ?z property:medical_condition_treated resource:Legionnaires'_disease . ?z rdf:type ontology:drug }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q8386),P2175,Q154882)
[{'concept': 'Q8386'}, 'P2175', 'Q154882']
[{'concept': 'drug'}, 'medical condition treated', "Legionnaires' disease"]
[]
Q424193 Q213511 Q1087499
SYSTEM
Levofloxacin, Erythromycin, Troleandomycin
Q424193 Q213511 Q1087499
(c(Q8386),P2175,Q154882)
action filter_type
action find_reverse
entity Q154882
relation P2175
type Q8386
[ANSWERS] are used to cure that health problem
[{'concept': 'Q8386'}, 'P2175', 'Q154882']
SELECT DISTINCT ?z WHERE { ?z property:P2175 resource:Q154882 . ?z rdf:type ontology:Q8386 }
Levofloxacin Erythromycin Troleandomycin
Levofloxacin, Erythromycin and Troleandomycin are used to cure that health problem
Levofloxacin Erythromycin Troleandomycin
action filter_type
action find_reverse
entity Legionnaires' disease
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', "Legionnaires' disease"]
SELECT DISTINCT ?z WHERE { ?z property:medical_condition_treated resource:Legionnaires'_disease . ?z rdf:type ontology:drug }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P2175
Q2057971 Q8386
USER
Which health problems require min number of drugs to be prescribed ?
(c(Q8386),P2175,Q28971)
action argmin
action find_reverse_tuple_counts
relation P2175
type Q2057971
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q28971']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P2175 ?l . ?l rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q8386 } GROUP BY ?l } } . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?e ) WHERE { ?x rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q8386 . ?j property:P2175 ?x } GROUP BY ?x } . FILTER ( ?e = ?d ) }
action argmin
action find_reverse_tuple_counts
relation medical condition treated
type health problem
type drug
[{'concept': 'drug'}, 'medical condition treated', 'impetigo']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:medical_condition_treated ?l . ?l rdf:type ontology:health_problem . ?t rdf:type ontology:drug } GROUP BY ?l } } . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?e ) WHERE { ?x rdf:type ontology:health_problem . ?j rdf:type ontology:drug . ?j property:medical_condition_treated ?x } GROUP BY ?x } . FILTER ( ?e = ?d ) }
[]
health problem drug
Q2351083 Q179945 Q1077603
SYSTEM
disease of metabolism, psoriasis, malignant mesothelioma
Q21154326 Q18557091 Q184084 Q612681 Q2351083 Q954674 Q3144201 Q1573307 Q2622714 Q221472 Q179945 Q899726 Q2306782 Q1811189 Q972514 Q207087 Q1077603 Q1711744 Q2563414 Q5062153
(c(Q8386),P2175,Q28971)
action argmin
action find_reverse_tuple_counts
relation P2175
type Q2057971
type Q8386
[ANSWERS] require min number of drugs to be prescribed
[{'concept': 'Q8386'}, 'P2175', 'Q28971']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:P2175 ?l . ?l rdf:type ontology:Q2057971 . ?t rdf:type ontology:Q8386 } GROUP BY ?l } } . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?e ) WHERE { ?x rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q8386 . ?j property:P2175 ?x } GROUP BY ?x } . FILTER ( ?e = ?d ) }
ariboflavinosis microglandular adenosis beriberi anuria disease of metabolism iron deficiency anemia Excessive daytime sleepiness Wernicke encephalopathy cholesteryl ester storage disease fragile X syndrome psoriasis Spinocerebellar ataxia hypochromic anemia Dystocia optic neuritis ectopic pregnancy malignant mesothelioma Merkel cell carcinoma cervical incompetence central sleep apnea
Disease of metabolism, psoriasis and malignant mesothelioma require min number of drugs to be prescribed
disease of metabolism psoriasis malignant mesothelioma
action argmin
action find_reverse_tuple_counts
relation medical condition treated
type health problem
type drug
[{'concept': 'drug'}, 'medical condition treated', 'impetigo']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?g ) AS ?d ) { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?g ) WHERE { ?t property:medical_condition_treated ?l . ?l rdf:type ontology:health_problem . ?t rdf:type ontology:drug } GROUP BY ?l } } . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?e ) WHERE { ?x rdf:type ontology:health_problem . ?j rdf:type ontology:drug . ?j property:medical_condition_treated ?x } GROUP BY ?x } . FILTER ( ?e = ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q7900395
P828
Q2057971 Q169872
USER
How many symptoms are the result of having around the same number of health problems as Uremic pruritus ?
(c(Q169872),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q169872
type Q2057971
action count
action filter_type
action find
entity Q7900395
relation P828
type Q169872
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?i ) WHERE { ?x rdf:type ontology:Q169872 . ?s rdf:type ontology:Q2057971 . ?x property:P828 ?s } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Q7900395 property:P828 ?j . ?j rdf:type ontology:Q169872 } } . FILTER ( ?i = ?p ) }
Uremic pruritus
action count
action approx
action find_tuple_counts
relation has cause
type symptom
type health problem
action count
action filter_type
action find
entity Uremic pruritus
relation has cause
type symptom
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?i ) WHERE { ?x rdf:type ontology:symptom . ?s rdf:type ontology:health_problem . ?x property:has_cause ?s } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Uremic_pruritus property:has_cause ?j . ?j rdf:type ontology:symptom } } . FILTER ( ?i = ?p ) }
[]
health problem symptom
SYSTEM
3
Q4907742 Q7900395 Q1899331
(c(Q169872),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q169872
type Q2057971
action count
action filter_type
action find
entity Q7900395
relation P828
type Q169872
[ANSWER]
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?i ) WHERE { ?x rdf:type ontology:Q169872 . ?s rdf:type ontology:Q2057971 . ?x property:P828 ?s } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Q7900395 property:P828 ?j . ?j rdf:type ontology:Q169872 } } . FILTER ( ?i = ?p ) }
Biliary pruritus Uremic pruritus mariske
3
action count
action approx
action find_tuple_counts
relation has cause
type symptom
type health problem
action count
action filter_type
action find
entity Uremic pruritus
relation has cause
type symptom
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?i ) WHERE { ?x rdf:type ontology:symptom . ?s rdf:type ontology:health_problem . ?x property:has_cause ?s } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Uremic_pruritus property:has_cause ?j . ?j rdf:type ontology:symptom } } . FILTER ( ?i = ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q4907742
P828
Q2057971 Q169872
USER
And what about Biliary pruritus?
(c(Q169872),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q169872
type Q2057971
action count
action filter_type
action find
entity Q4907742
relation P828
type Q169872
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?b ) WHERE { ?m property:P828 ?q . ?m rdf:type ontology:Q169872 . ?q rdf:type ontology:Q2057971 } GROUP BY ?m } . FILTER ( ?b = ?h ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ontology:Q169872 . resource:Q4907742 property:P828 ?i } } }
Biliary pruritus
action count
action approx
action find_tuple_counts
relation has cause
type symptom
type health problem
action count
action filter_type
action find
entity Biliary pruritus
relation has cause
type symptom
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?b ) WHERE { ?m property:has_cause ?q . ?m rdf:type ontology:symptom . ?q rdf:type ontology:health_problem } GROUP BY ?m } . FILTER ( ?b = ?h ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ontology:symptom . resource:Biliary_pruritus property:has_cause ?i } } }
[]
health problem symptom
SYSTEM
3
Q4907742 Q7900395 Q1899331
(c(Q169872),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q169872
type Q2057971
action count
action filter_type
action find
entity Q4907742
relation P828
type Q169872
[ANSWER]
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?b ) WHERE { ?m property:P828 ?q . ?m rdf:type ontology:Q169872 . ?q rdf:type ontology:Q2057971 } GROUP BY ?m } . FILTER ( ?b = ?h ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ontology:Q169872 . resource:Q4907742 property:P828 ?i } } }
Biliary pruritus Uremic pruritus mariske
3
action count
action approx
action find_tuple_counts
relation has cause
type symptom
type health problem
action count
action filter_type
action find
entity Biliary pruritus
relation has cause
type symptom
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?b ) WHERE { ?m property:has_cause ?q . ?m rdf:type ontology:symptom . ?q rdf:type ontology:health_problem } GROUP BY ?m } . FILTER ( ?b = ?h ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i rdf:type ontology:symptom . resource:Biliary_pruritus property:has_cause ?i } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q213511
P769
Q8386
USER
How many drugs shows a significant drug interaction with Erythromycin ?
(Q213511,P769,c(Q8386))
action count
action filter_type
action find
entity Q213511
relation P769
type Q8386
['Q213511', 'P769', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { resource:Q213511 property:P769 ?q . ?q rdf:type ontology:Q8386 }
Erythromycin
action count
action filter_type
action find
entity Erythromycin
relation significant drug interaction
type drug
['Erythromycin', 'significant drug interaction', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { resource:Erythromycin property:significant_drug_interaction ?q . ?q rdf:type ontology:drug }
[]
drug
SYSTEM
37
Q58375 Q41576 Q422418 Q408163 Q422438 Q10354103 Q425120 Q407972 Q144085 Q6821618 Q424238 Q410011 Q412496 Q4890934 Q3712521 Q413591 Q976559 Q165399 Q423757 Q425295 Q251347 Q118551 Q408637 Q424940 Q3791612 Q417597 Q174259 Q419394 Q417909 Q947595 Q423437 Q409672 Q179996 Q410061 Q421381 Q7739 Q416206
(Q213511,P769,c(Q8386))
action count
action filter_type
action find
entity Q213511
relation P769
type Q8386
[ANSWER]
['Q213511', 'P769', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { resource:Q213511 property:P769 ?q . ?q rdf:type ontology:Q8386 }
thioridazine cocaine sulpiride anagrelide chloroquine probucol Disopyramide chlorpromazine pimozide mesoridazine domperidone ondansetron quinidine bepridil dofetilide sotalol Sparfloxacin Azithromycin escitalopram Cisapride haloperidol Clarithromycin dronedarone Moxifloxacin ibutilide procainamide droperidol sevoflurane terfenadine Halofantrine astemizole citalopram methadone amiodarone flecainide Arsenic trioxide Pentamidine
37
action count
action filter_type
action find
entity Erythromycin
relation significant drug interaction
type drug
['Erythromycin', 'significant drug interaction', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { resource:Erythromycin property:significant_drug_interaction ?q . ?q rdf:type ontology:drug }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q414463
P769
Q8386
USER
And also tell me about tapentadol?
(Q414463,P769,c(Q8386))
action count
action filter_type
action find
entity Q414463
relation P769
type Q8386
['Q414463', 'P769', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q414463 property:P769 ?w . ?w rdf:type ontology:Q8386 }
tapentadol
action count
action filter_type
action find
entity tapentadol
relation significant drug interaction
type drug
['tapentadol', 'significant drug interaction', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:tapentadol property:significant_drug_interaction ?w . ?w rdf:type ontology:drug }
[]
drug
SYSTEM
4
Q418656 Q1747559 Q409595 Q420885
(Q414463,P769,c(Q8386))
action count
action filter_type
action find
entity Q414463
relation P769
type Q8386
[ANSWER]
['Q414463', 'P769', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q414463 property:P769 ?w . ?w rdf:type ontology:Q8386 }
procarbazine phenelzine Isocarboxazid tranylcypromine
4
action count
action filter_type
action find
entity tapentadol
relation significant drug interaction
type drug
['tapentadol', 'significant drug interaction', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:tapentadol property:significant_drug_interaction ?w . ?w rdf:type ontology:drug }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q417740
Q8386
USER
And what about lovastatin?
(Q417740,P769,c(Q8386))
action count
action filter_type
action find
entity Q417740
relation P769
type Q8386
['Q417740', 'P769', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Q417740 property:P769 ?g . ?g rdf:type ontology:Q8386 }
lovastatin
action count
action filter_type
action find
entity lovastatin
relation significant drug interaction
type drug
['lovastatin', 'significant drug interaction', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:lovastatin property:significant_drug_interaction ?g . ?g rdf:type ontology:drug }
[]
drug
SYSTEM
18
(Q417740,P769,c(Q8386))
action count
action filter_type
action find
entity Q417740
relation P769
type Q8386
[ANSWER]
['Q417740', 'P769', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:Q417740 property:P769 ?g . ?g rdf:type ontology:Q8386 }
18
action count
action filter_type
action find
entity lovastatin
relation significant drug interaction
type drug
['lovastatin', 'significant drug interaction', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { resource:lovastatin property:significant_drug_interaction ?g . ?g rdf:type ontology:drug }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q213511
P636
Q151885
USER
Which concepts are the routes of administration of Erythromycin ?
(Q213511,P636,c(Q151885))
action filter_type
action find
entity Q213511
relation P636
type Q151885
['Q213511', 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q151885 . resource:Q213511 property:P636 ?g }
Erythromycin
action filter_type
action find
entity Erythromycin
relation route of administration
type concept
['Erythromycin', 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:concept . resource:Erythromycin property:route_of_administration ?g }
[]
concept
Q285166 Q420054 Q640448
SYSTEM
oral administration, topical medication, intravenous infusion
Q285166 Q420054 Q640448
(Q213511,P636,c(Q151885))
action filter_type
action find
entity Q213511
relation P636
type Q151885
[ANSWERS] are the routes of administration of Erythromycin
['Q213511', 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q151885 . resource:Q213511 property:P636 ?g }
oral administration topical medication intravenous infusion
Oral administration, topical medication and intravenous infusion are the routes of administration of Erythromycin
oral administration topical medication intravenous infusion
action filter_type
action find
entity Erythromycin
relation route of administration
type concept
['Erythromycin', 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:concept . resource:Erythromycin property:route_of_administration ?g }
[]