Simple Question (Direct)
Simple Question
Q259888
P509
Q2057971
USER
What was the cause of death of Kage Baker ?
(Q259888,P509,c(Q2057971))
action filter_type
action find
entity Q259888
relation P509
type Q2057971
['Q259888', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2057971 . resource:Q259888 property:P509 ?y }
Kage Baker
action filter_type
action find
entity Kage Baker
relation cause of death
type health problem
['Kage Baker', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:health_problem . resource:Kage_Baker property:cause_of_death ?y }
[]
health problem
Q1209744
SYSTEM
uterine cancer
Q1209744
(Q259888,P509,c(Q2057971))
action filter_type
action find
entity Q259888
relation P509
type Q2057971
The cause of death of Kage Baker was of [ANSWER]
['Q259888', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2057971 . resource:Q259888 property:P509 ?y }
uterine cancer
The cause of death of Kage Baker was of uterine cancer
uterine cancer
action filter_type
action find
entity Kage Baker
relation cause of death
type health problem
['Kage Baker', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:health_problem . resource:Kage_Baker property:cause_of_death ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q259888
P50
Q2342494
USER
Which collectables were written by that person ?
(c(Q2342494),P50,Q1209744)
action filter_type
action find_reverse
entity Q259888
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q1209744']
SELECT DISTINCT ?q WHERE { ?q property:P50 resource:Q259888 . ?q rdf:type ontology:Q2342494 }
Kage Baker
action filter_type
action find_reverse
entity Kage Baker
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'uterine cancer']
SELECT DISTINCT ?q WHERE { ?q property:author resource:Kage_Baker . ?q rdf:type ontology:collectable }
[]
collectable
Q17110831 Q7737603 Q7537289
SYSTEM
The Time Traveler's Almanac, The Graveyard Game, Sky Coyote
Q6012198 Q7737603 Q4921511 Q16385840 Q7747225 Q7722506 Q7537289 Q6816752 Q7765299 Q17110831 Q7749277
(c(Q2342494),P50,Q1209744)
action filter_type
action find_reverse
entity Q259888
relation P50
type Q2342494
[ANSWERS] were written by that person
[{'concept': 'Q2342494'}, 'P50', 'Q1209744']
SELECT DISTINCT ?q WHERE { ?q property:P50 resource:Q259888 . ?q rdf:type ontology:Q2342494 }
In the Garden of Iden The Graveyard Game Black Projects, White Knights Gods and Pawns The Life of the World to Come The Children of the Company Sky Coyote Mendoza in Hollywood The Sons of Heaven The Time Traveler's Almanac The Machine's Child
The Time Traveler's Almanac, The Graveyard Game and Sky Coyote were written by that person
The Time Traveler's Almanac The Graveyard Game Sky Coyote
action filter_type
action find_reverse
entity Kage Baker
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'uterine cancer']
SELECT DISTINCT ?q WHERE { ?q property:author resource:Kage_Baker . ?q rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q17110831 Q7737603 Q7537289
P136
Q1792379
USER
What can be considered as category for The Time Traveler's Almanac, The Graveyard Game and Sky Coyote ?
(Q17110831,P136,c(Q1792379)) (Q7737603,P136,c(Q1792379)) (Q7537289,P136,c(Q1792379))
action union
action filter_type
action find
entity Q17110831
relation P136
type Q1792379
action filter_type
action find
entity Q7737603
relation P136
type Q1792379
action filter_type
action find
entity Q7537289
relation P136
type Q1792379
['Q17110831', 'P136', {'concept': 'Q1792379'}] ['Q7737603', 'P136', {'concept': 'Q1792379'}] ['Q7537289', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { { resource:Q7737603 property:P136 ?u . ?u rdf:type ontology:Q1792379 } UNION { resource:Q17110831 property:P136 ?u . ?u rdf:type ontology:Q1792379 } }
The Time Traveler's Almanac The Graveyard Game Sky Coyote
action union
action filter_type
action find
entity The Time Traveler's Almanac
relation genre
type art genre
action filter_type
action find
entity The Graveyard Game
relation genre
type art genre
action filter_type
action find
entity Sky Coyote
relation genre
type art genre
["The Time Traveler's Almanac", 'genre', {'concept': 'art genre'}] ['The Graveyard Game', 'genre', {'concept': 'art genre'}] ['Sky Coyote', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { { resource:The_Graveyard_Game property:genre ?u . ?u rdf:type ontology:art_genre } UNION { resource:The_Time_Traveler's_Almanac property:genre ?u . ?u rdf:type ontology:art_genre } }
[]
art genre
Q1057172 Q8261 Q8261
SYSTEM
novel for 2nd, 3rd, fantasy literature for 1st
Q1057172 Q8261 Q8261
(Q17110831,P136,c(Q1792379)) (Q7737603,P136,c(Q1792379)) (Q7537289,P136,c(Q1792379))
action union
action filter_type
action find
entity Q17110831
relation P136
type Q1792379
action filter_type
action find
entity Q7737603
relation P136
type Q1792379
action filter_type
action find
entity Q7537289
relation P136
type Q1792379
[ANSWERS]
['Q17110831', 'P136', {'concept': 'Q1792379'}] ['Q7737603', 'P136', {'concept': 'Q1792379'}] ['Q7537289', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { { resource:Q7737603 property:P136 ?u . ?u rdf:type ontology:Q1792379 } UNION { resource:Q17110831 property:P136 ?u . ?u rdf:type ontology:Q1792379 } }
fantasy literature novel novel
And fantasy literature, novel and novel can be considered as category for The Time Traveler's Almanac, The Graveyard Game and Sky Coyote
fantasy literature novel novel
action union
action filter_type
action find
entity The Time Traveler's Almanac
relation genre
type art genre
action filter_type
action find
entity The Graveyard Game
relation genre
type art genre
action filter_type
action find
entity Sky Coyote
relation genre
type art genre
["The Time Traveler's Almanac", 'genre', {'concept': 'art genre'}] ['The Graveyard Game', 'genre', {'concept': 'art genre'}] ['Sky Coyote', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { { resource:The_Graveyard_Game property:genre ?u . ?u rdf:type ontology:art_genre } UNION { resource:The_Time_Traveler's_Almanac property:genre ?u . ?u rdf:type ontology:art_genre } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8261
P425
Q12737077
USER
Which occupation does that art genre belong to ?
(c(Q12737077),P425,Q8261)
action filter_type
action find_reverse
entity Q8261
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q8261']
SELECT DISTINCT ?m WHERE { ?m property:P425 resource:Q8261 . ?m rdf:type ontology:Q12737077 }
novel
action filter_type
action find_reverse
entity novel
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'novel']
SELECT DISTINCT ?m WHERE { ?m property:field_of_this_occupation resource:novel . ?m rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q8261
SYSTEM
Did you mean novel ?
Q1057172 Q8261 Q8261
(c(Q12737077),P425,Q1057172) (c(Q12737077),P425,Q8261) (c(Q12737077),P425,Q8261)
[ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q1057172'] [{'concept': 'Q12737077'}, 'P425', 'Q8261'] [{'concept': 'Q12737077'}, 'P425', 'Q8261']
SELECT DISTINCT ?m WHERE { ?m property:P425 resource:Q8261 . ?m rdf:type ontology:Q12737077 }
fantasy literature novel novel
Did you mean novel ?
novel
[{'concept': 'occupation'}, 'field of this occupation', 'fantasy literature'] [{'concept': 'occupation'}, 'field of this occupation', 'novel'] [{'concept': 'occupation'}, 'field of this occupation', 'novel']
SELECT DISTINCT ?m WHERE { ?m property:field_of_this_occupation resource:novel . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q12737077),P425,Q8261)
[{'concept': 'Q12737077'}, 'P425', 'Q8261']
[{'concept': 'occupation'}, 'field of this occupation', 'novel']
[]
Q6625963
SYSTEM
novelist
Q6625963
(c(Q12737077),P425,Q8261)
action filter_type
action find_reverse
entity Q8261
relation P425
type Q12737077
That art genre belongs to the [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q8261']
SELECT DISTINCT ?m WHERE { ?m property:P425 resource:Q8261 . ?m rdf:type ontology:Q12737077 }
novelist
That art genre belongs to the novelist
novelist
action filter_type
action find_reverse
entity novel
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'novel']
SELECT DISTINCT ?m WHERE { ?m property:field_of_this_occupation resource:novel . ?m rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q6625963 Q574535
P425
Q1792379
USER
Is Pitaval associated with the field of occupation that one ?
(Q6625963,P425,Q574535)
action is_in
entity Q574535
action find
entity Q6625963
relation P425
['Q6625963', 'P425', 'Q574535']
ASK WHERE { resource:Q6625963 property:P425 resource:Q574535 }
novelist Pitaval
action is_in
entity Pitaval
action find
entity novelist
relation field of this occupation
['novelist', 'field of this occupation', 'Pitaval']
ASK WHERE { resource:novelist property:field_of_this_occupation resource:Pitaval }
[]
art genre
SYSTEM
NO
(Q6625963,P425,Q574535)
action is_in
entity Q574535
action find
entity Q6625963
relation P425
[ANSWER]
['Q6625963', 'P425', 'Q574535']
ASK WHERE { resource:Q6625963 property:P425 resource:Q574535 }
No
action is_in
entity Pitaval
action find
entity novelist
relation field of this occupation
['novelist', 'field of this occupation', 'Pitaval']
ASK WHERE { resource:novelist property:field_of_this_occupation resource:Pitaval }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8084905 Q1209744
P2176
Q8386
USER
Which drugs are used to cure uterine cancer or autoimmune neuromuscular disease ?
OR((Q1209744,P2176,c(Q8386)), (Q8084905,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q1209744
relation P2176
action find
entity Q8084905
relation P2176
type Q8386
{'OR': [['Q1209744', 'P2176', {'concept': 'Q8386'}], ['Q8084905', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q8386 . { { resource:Q1209744 property:P2176 ?w } UNION { resource:Q8084905 property:P2176 ?w } } }
autoimmune neuromuscular disease uterine cancer
action filter_type
action union
action find
entity uterine cancer
relation drug used for treatment
action find
entity autoimmune neuromuscular disease
relation drug used for treatment
type drug
{'OR': [['uterine cancer', 'drug used for treatment', {'concept': 'drug'}], ['autoimmune neuromuscular disease', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:drug . { { resource:uterine_cancer property:drug_used_for_treatment ?w } UNION { resource:autoimmune_neuromuscular_disease property:drug_used_for_treatment ?w } } }
[]
drug
Q416554 Q422252 Q417222 Q212272 Q423762 Q18939 Q418817 Q424972 Q420553 Q186127
SYSTEM
Some of them are PGE2, dexamethasone, methylprednisolone, hydroxyurea, Paclitaxel, azathioprine, etoposide, prednisone, mycophenolic acid, Dactinomycin
Q423762 Q417222 Q420553 Q418817 Q367700 Q18939 Q212272 Q422252 Q186127 Q424972 Q416554
OR((Q1209744,P2176,c(Q8386)), (Q8084905,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q1209744
relation P2176
action find
entity Q8084905
relation P2176
type Q8386
[ANSWERS] are used to cure uterine cancer or autoimmune neuromuscular disease
{'OR': [['Q1209744', 'P2176', {'concept': 'Q8386'}], ['Q8084905', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q8386 . { { resource:Q1209744 property:P2176 ?w } UNION { resource:Q8084905 property:P2176 ?w } } }
Paclitaxel methylprednisolone mycophenolic acid etoposide Cyclosporine azathioprine hydroxyurea dexamethasone Dactinomycin prednisone PGE2
PGE2, dexamethasone, methylprednisolone, hydroxyurea, Paclitaxel, azathioprine, etoposide, prednisone, mycophenolic acid and Dactinomycin are used to cure uterine cancer or autoimmune neuromuscular disease
PGE2 dexamethasone methylprednisolone hydroxyurea Paclitaxel azathioprine etoposide prednisone mycophenolic acid Dactinomycin
action filter_type
action union
action find
entity uterine cancer
relation drug used for treatment
action find
entity autoimmune neuromuscular disease
relation drug used for treatment
type drug
{'OR': [['uterine cancer', 'drug used for treatment', {'concept': 'drug'}], ['autoimmune neuromuscular disease', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:drug . { { resource:uterine_cancer property:drug_used_for_treatment ?w } UNION { resource:autoimmune_neuromuscular_disease property:drug_used_for_treatment ?w } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6708277 Q1209744
P2175
Q8386
USER
Which drugs are used for the treatment of uterine cancer and lymphoid leukemia ?
AND((c(Q8386),P2175,Q1209744), (c(Q8386),P2175,Q6708277))
action filter_type
action intersection
action find_reverse
entity Q1209744
relation P2175
action find_reverse
entity Q6708277
relation P2175
type Q8386
{'AND': [[{'concept': 'Q8386'}, 'P2175', 'Q1209744'], [{'concept': 'Q8386'}, 'P2175', 'Q6708277']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q8386 . ?y property:P2175 resource:Q1209744 . ?y property:P2175 resource:Q6708277 }
lymphoid leukemia uterine cancer
action filter_type
action intersection
action find_reverse
entity uterine cancer
relation medical condition treated
action find_reverse
entity lymphoid leukemia
relation medical condition treated
type drug
{'AND': [[{'concept': 'drug'}, 'medical condition treated', 'uterine cancer'], [{'concept': 'drug'}, 'medical condition treated', 'lymphoid leukemia']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:drug . ?y property:medical_condition_treated resource:uterine_cancer . ?y property:medical_condition_treated resource:lymphoid_leukemia }
[]
drug
Q418817
SYSTEM
etoposide
Q418817
AND((c(Q8386),P2175,Q1209744), (c(Q8386),P2175,Q6708277))
action filter_type
action intersection
action find_reverse
entity Q1209744
relation P2175
action find_reverse
entity Q6708277
relation P2175
type Q8386
De [ANSWER] is used for the treatment of uterine cancer and lymphoid leukemia
{'AND': [[{'concept': 'Q8386'}, 'P2175', 'Q1209744'], [{'concept': 'Q8386'}, 'P2175', 'Q6708277']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q8386 . ?y property:P2175 resource:Q1209744 . ?y property:P2175 resource:Q6708277 }
etoposide
De etoposide is used for the treatment of uterine cancer and lymphoid leukemia
etoposide
action filter_type
action intersection
action find_reverse
entity uterine cancer
relation medical condition treated
action find_reverse
entity lymphoid leukemia
relation medical condition treated
type drug
{'AND': [[{'concept': 'drug'}, 'medical condition treated', 'uterine cancer'], [{'concept': 'drug'}, 'medical condition treated', 'lymphoid leukemia']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:drug . ?y property:medical_condition_treated resource:uterine_cancer . ?y property:medical_condition_treated resource:lymphoid_leukemia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q418817 Q763356 Q18557229
P2175
Q2057971
USER
Is etoposide used for treatment of CREST syndrome and CLL/SLL ?
(Q418817,P2175,Q763356) (Q418817,P2175,Q18557229)
action is_in
entity Q418817
action intersection
action find_reverse
entity Q763356
relation P2175
action find_reverse
entity Q18557229
relation P2175
['Q418817', 'P2175', 'Q763356'] ['Q418817', 'P2175', 'Q18557229']
ASK WHERE { resource:Q418817 property:P2175 resource:Q763356 . resource:Q418817 property:P2175 resource:Q18557229 }
etoposide CREST syndrome CLL/SLL
action is_in
entity etoposide
action intersection
action find_reverse
entity CREST syndrome
relation medical condition treated
action find_reverse
entity CLL/SLL
relation medical condition treated
['etoposide', 'medical condition treated', 'CREST syndrome'] ['etoposide', 'medical condition treated', 'CLL/SLL']
ASK WHERE { resource:etoposide property:medical_condition_treated resource:CREST_syndrome . resource:etoposide property:medical_condition_treated resource:CLL/SLL }
[]
health problem
SYSTEM
NO
(Q418817,P2175,Q763356) (Q418817,P2175,Q18557229)
action is_in
entity Q418817
action intersection
action find_reverse
entity Q763356
relation P2175
action find_reverse
entity Q18557229
relation P2175
[ANSWER]
['Q418817', 'P2175', 'Q763356'] ['Q418817', 'P2175', 'Q18557229']
ASK WHERE { resource:Q418817 property:P2175 resource:Q763356 . resource:Q418817 property:P2175 resource:Q18557229 }
No
action is_in
entity etoposide
action intersection
action find_reverse
entity CREST syndrome
relation medical condition treated
action find_reverse
entity CLL/SLL
relation medical condition treated
['etoposide', 'medical condition treated', 'CREST syndrome'] ['etoposide', 'medical condition treated', 'CLL/SLL']
ASK WHERE { resource:etoposide property:medical_condition_treated resource:CREST_syndrome . resource:etoposide property:medical_condition_treated resource:CLL/SLL }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q8386 Q838948 Q732577
USER
How many drugs were discussed in around 14 works of art or publications ?
(c(Q838948)|c(Q732577),P921,c(Q8386))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q838948
action find_reverse_tuple_counts
relation P921
type Q8386
type Q732577
value 14
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?p WHERE { { ?z property:P921 ?p . ?p rdf:type ontology:Q8386 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P921 ?p . ?p rdf:type ontology:Q8386 . ?z rdf:type ontology:Q732577 } } GROUP BY ?p } . FILTER ( ?r = 14 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work of art
action find_reverse_tuple_counts
relation main subject
type drug
type publication
value 14
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?p WHERE { { ?z property:main_subject ?p . ?p rdf:type ontology:drug . ?z rdf:type ontology:work_of_art } UNION { ?z property:main_subject ?p . ?p rdf:type ontology:drug . ?z rdf:type ontology:publication } } GROUP BY ?p } . FILTER ( ?r = 14 ) }
[]
drug work of art publication
SYSTEM
250
Q377270 Q422416 Q410083 Q20816880 Q193572 Q192717 Q243547 Q1147309 Q2957662 Q409262 Q3273062 Q412194 Q5134338 Q415550 Q411441 Q214769 Q418351 Q413486 Q71969 Q898739 Q421352 Q816759 Q60168 Q212272 Q1752915 Q162867 Q422252 Q238512 Q3108899 Q424976 Q414796 Q184630 Q413188 Q193166 Q620730 Q188017 Q238474 Q281082 Q388801 Q134658 Q18939 Q170545 Q424145 Q423989 Q421183 Q408471 Q18936 Q413690 Q258450 Q685119 Q190067 Q554881 Q80863 Q174723 Q199678 Q422241 Q408646 Q425362 Q26963 Q412143 Q416206 Q326224 Q192471 Q76560 Q2467555 Q170304 Q421862 Q423364 Q384993 Q421781 Q1215575 Q127060 Q407972 Q193045 Q190875 Q423930 Q282003 Q412208 Q60235 Q411461 Q121874 Q244150 Q3800087 Q413968 Q415869 Q908663 Q273169 Q180912 Q421910 Q282629 Q410352 Q213511 Q192464 Q416821 Q23118 Q29417 Q200774 Q416905 Q419642 Q2314 Q210402 Q132621 Q221520 Q414547 Q425234 Q375613 Q423169 Q423005 Q415734 Q407617 Q413504 Q134808 Q81225 Q412221 Q416507 Q179996 Q416503 Q407241 Q846227 Q285911 Q412299 Q423762 Q411635 Q412415 Q41576 Q181003 Q152763 Q421119 Q410441 Q411885 Q407781 Q179731 Q5103230 Q415939 Q46452 Q422745 Q408524 Q518114 Q186127 Q190012 Q19484 Q5319614 Q186969 Q409231 Q420673 Q2701912 Q422669 Q408977 Q300989 Q412496 Q191924 Q416740 Q12144 Q407172 Q423357 Q419995 Q423423 Q186521 Q415588 Q407308 Q422215 Q407541 Q3322838 Q287029 Q418157 Q418011 Q219626 Q425296 Q348922 Q900898 Q186242 Q2768526 Q318369 Q423746 Q485277 Q181619 Q407431 Q411237 Q419175 Q413918 Q62947 Q191700 Q203174 Q183290 Q425289 Q904308 Q409632 Q420360 Q2603363 Q169569 Q407535 Q410358 Q339975 Q2341200 Q32921 Q18216 Q821641 Q1318776 Q422884 Q52353 Q408427 Q773449 Q2502747 Q409492 Q208451 Q422232 Q414065 Q19856779 Q418560 Q408032 Q415850 Q182040 Q385347 Q410595 Q2354337 Q251698 Q419401 Q418817 Q416516 Q57055 Q409665 Q422112 Q178566 Q415571 Q407927 Q425502 Q39798 Q408570 Q20817216 Q407841 Q418523 Q410829 Q423814 Q192423 Q582356 Q423890 Q26272 Q411456 Q186474 Q198504 Q22124685 Q327362 Q411594 Q418656 Q2298283 Q410374 Q420436 Q410061 Q407125 Q7739
(c(Q838948)|c(Q732577),P921,c(Q8386))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q838948
action find_reverse_tuple_counts
relation P921
type Q8386
type Q732577
value 14
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?p WHERE { { ?z property:P921 ?p . ?p rdf:type ontology:Q8386 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P921 ?p . ?p rdf:type ontology:Q8386 . ?z rdf:type ontology:Q732577 } } GROUP BY ?p } . FILTER ( ?r = 14 ) }
dihydrocodeine 17β-estradiol Polyethylene glycol L-Lysine salicylic acid Streptomycin Ketamine Cyclandelate activated charcoal Meticillin MM1 buspirone Clioquinol Isoprenaline hydrocodone Magnesium oxide meprobamate diphenhydramine Hexamethylenetetramine Laudanum norethisterone Beta blocker diamorphine hydroxyurea trifluoperazine nitroglycerin dexamethasone 5-fluorouracil glipizide Vitamin A temazepam Potassium Chloride methacholine Choline Glycine L-Tyrosine 5-aminolevulinic acid Nalidixic Acid furosemide nicotinic acid azathioprine L-Phenylalanine Praziquantel diethylstilbestrol Hexobarbital Paroxetine doxorubicin acetazolamide penicillin G methoxamine Δ9-tetrahydrocannabinol Ethylmorphine Adenosine triphosphate codeine Vitamin C Sodium lauryl sulfate Triclosan Hexachlorophene progesterone triazolam Pentamidine Colchicine Menadione antidepressant Furazolidone dopamine ribavirin propranolol Isoflurophate Cupric Chloride naproxen Folic Acid chlorpromazine Tetracycline cortisol hydrochlorothiazide Lindane lisinopril caffeine pilocarpine Potassium Iodide Ampicillin pyrilamine Dimercaprol carmustine kaolin capsaicin melatonin phenylephrine Vinblastine gabapentin Erythromycin Levoleucovorin Menotropins LSD all-trans-retinoic acid Follitropin beta carisoprodol Trypan blue sodium chloride diazepam (-)-adrenaline triamterene Sodium salicylate Thallous Chloride RK-0202 Isoniazid Malathion Aminopterin sertraline azelaic acid vaccine morphine clonidine thiotepa methadone Aminophenazone phenobarbital antiviral drug ouabain oxazepam Paclitaxel Permethrin cisplatin cocaine L-Tryptophan Lithium captopril modafinil Chromic chloride dextromethorphan Sodium bicarbonate Chlorphentermine chlorambucil opiumerty Benzocaine cyclophosphamide Oxybenzone Dactinomycin adenosine metformin Dz13 ibuprofen indomethacin guanethidine clofibrate Nitrofurantoin vincristine levodopa quinidine Methamphetamine enflurane Nicotine Chorionic gonadotropin eugenol amiloride Sulfanilamide L-Threonine Carboplatin theophylline Phenoxymethylpenicillin fentanyl (+/-)-benzphetamine Isotretinoin Phentermine mechlorethamine (-)-ephedrine prazosin busulfan probenecid (-)-noradrenaline monobenzone Adenosine monophosphate Pyridoxine L-Histidine L-Glutamine Warfarin 4-hydroxyproline Phenacetin Isoflurane flunitrazepam Benzoic Acid thalidomide L-Serine chlorthalidone Mestranol pentobarbital phentolamine chlorothiazide Metronidazole oxycodone salbutamol Sodium Nitrite Clodronate halothane acetylsalicylic acid metyrapone testosterone Ethyl carbamate Benzyl alcohol Sulfathiazole T4 Sofosbuvir cimetidine calcium chloride methotrexate attapulgite mitomycin C ifosfamide Edetic Acid Amobarbital Aspartame thioguanine physostigmine Phosphatidyl serine Amifostine Carbachol etoposide enoxaparin paracetamol disulfiram methylphenidate chlordiazepoxide Bleomycin Dimethyl sulfoxide Nitrofural Insulin Methoxsalen testosterone propionate reserpine niclosamide Heptabarbital dimercaptosuccinic acid Nicotinamide Interferon gamma-1b digitoxin Atropine methocarbamol L-Cysteine zidovudine L-Methionine triiodothyronine methoxyflurane procarbazine melphalan Papaverine docetaxel amiodarone Aluminum hydroxide Arsenic trioxide
250
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work of art
action find_reverse_tuple_counts
relation main subject
type drug
type publication
value 14
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) ?p WHERE { { ?z property:main_subject ?p . ?p rdf:type ontology:drug . ?z rdf:type ontology:work_of_art } UNION { ?z property:main_subject ?p . ?p rdf:type ontology:drug . ?z rdf:type ontology:publication } } GROUP BY ?p } . FILTER ( ?r = 14 ) }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q23921900
Q2057971
USER
And also tell me about Sources of respiratory insult in the poultry processing industry?
(Q23921900,P921,c(Q2057971))
action filter_type
action find
entity Q23921900
relation P921
type Q2057971
['Q23921900', 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2057971 . resource:Q23921900 property:P921 ?b }
Sources of respiratory insult in the poultry processing industry
action filter_type
action find
entity Sources of respiratory insult in the poultry processing industry
relation main subject
type health problem
['Sources of respiratory insult in the poultry processing industry', 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:health_problem . resource:Sources_of_respiratory_insult_in_the_poultry_processing_industry property:main_subject ?b }
[]
health problem
Q637816
SYSTEM
occupational disease
Q637816
(Q23921900,P921,c(Q2057971))
action filter_type
action find
entity Q23921900
relation P921
type Q2057971
[ANSWER]
['Q23921900', 'P921', {'concept': 'Q2057971'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2057971 . resource:Q23921900 property:P921 ?b }
occupational disease
occupational disease
action filter_type
action find
entity Sources of respiratory insult in the poultry processing industry
relation main subject
type health problem
['Sources of respiratory insult in the poultry processing industry', 'main subject', {'concept': 'health problem'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:health_problem . resource:Sources_of_respiratory_insult_in_the_poultry_processing_industry property:main_subject ?b }
[]