Simple Question (Direct)
Simple Question
Q1399937
P509
Q2057971
USER
What lead to the death of Ford Sterling ?
(Q1399937,P509,c(Q2057971))
action filter_type
action find
entity Q1399937
relation P509
type Q2057971
['Q1399937', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q1399937 property:P509 ?g . ?g rdf:type ontology:Q2057971 }
Ford Sterling
action filter_type
action find
entity Ford Sterling
relation cause of death
type health problem
['Ford Sterling', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:Ford_Sterling property:cause_of_death ?g . ?g rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q1399937,P509,c(Q2057971))
action filter_type
action find
entity Q1399937
relation P509
type Q2057971
[ANSWER] lead to the death of Ford Sterling
['Q1399937', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q1399937 property:P509 ?g . ?g rdf:type ontology:Q2057971 }
myocardial infarction
Myocardial infarction lead to the death of Ford Sterling
myocardial infarction
action filter_type
action find
entity Ford Sterling
relation cause of death
type health problem
['Ford Sterling', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:Ford_Sterling property:cause_of_death ?g . ?g rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12152
P1050
Q502895
USER
Which people have the disease that health problem ?
(c(Q502895),P1050,Q12152)
action filter_type
action find_reverse
entity Q12152
relation P1050
type Q502895
[{'concept': 'Q502895'}, 'P1050', 'Q12152']
SELECT DISTINCT ?e WHERE { ?e property:P1050 resource:Q12152 . ?e rdf:type ontology:Q502895 }
myocardial infarction
action filter_type
action find_reverse
entity myocardial infarction
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'myocardial infarction']
SELECT DISTINCT ?e WHERE { ?e property:medical_condition resource:myocardial_infarction . ?e rdf:type ontology:common_name }
[]
common name
Q5337444 Q9916
SYSTEM
Edgar Rosenberg, Dwight D. Eisenhower
Q5337444 Q9916
(c(Q502895),P1050,Q12152)
action filter_type
action find_reverse
entity Q12152
relation P1050
type Q502895
[ANSWERS] have the disease that health problem
[{'concept': 'Q502895'}, 'P1050', 'Q12152']
SELECT DISTINCT ?e WHERE { ?e property:P1050 resource:Q12152 . ?e rdf:type ontology:Q502895 }
Edgar Rosenberg Dwight D. Eisenhower
Edgar Rosenberg and Dwight D. Eisenhower have the disease that health problem
Edgar Rosenberg Dwight D. Eisenhower
action filter_type
action find_reverse
entity myocardial infarction
relation medical condition
type common name
[{'concept': 'common name'}, 'medical condition', 'myocardial infarction']
SELECT DISTINCT ?e WHERE { ?e property:medical_condition resource:myocardial_infarction . ?e rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q11572
P725
Q502895 Q15961987
USER
How many television genres had more number of people as the dubbing artist than Avatar: The Last Airbender ?
(c(Q15961987),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q11572
relation P725
type Q15961987
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?z ) WHERE { ?h property:P725 ?a . ?h rdf:type ontology:Q15961987 . ?a rdf:type ontology:Q502895 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q11572 property:P725 ?v . ?v rdf:type ontology:Q15961987 } } . FILTER ( ?z > ?e ) }
Avatar: The Last Airbender
action count
action greater
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Avatar: The Last Airbender
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?z ) WHERE { ?h property:voice_actor ?a . ?h rdf:type ontology:television_genre . ?a rdf:type ontology:common_name } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Avatar:_The_Last_Airbender property:voice_actor ?v . ?v rdf:type ontology:television_genre } } . FILTER ( ?z > ?e ) }
[]
common name television genre
SYSTEM
12
Q24034511 Q11296848 Q7615342 Q3235151 Q576501 Q22773153 Q18790 Q53093 Q753848 Q5415 Q886 Q2750339
(c(Q15961987),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q11572
relation P725
type Q15961987
[ANSWER]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?z ) WHERE { ?h property:P725 ?a . ?h rdf:type ontology:Q15961987 . ?a rdf:type ontology:Q502895 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q11572 property:P725 ?v . ?v rdf:type ontology:Q15961987 } } . FILTER ( ?z > ?e ) }
Voltron: Legendary Defender Kiteretsu Daihyakka Steven Universe VeggieTales Garfield and Friends Milo Murphy's Law The Legend of Korra Adventure Time TaleSpin My Little Pony: Friendship Is Magic The Simpsons Hellsing Ultimate
12
action count
action greater
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Avatar: The Last Airbender
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?a ) AS ?z ) WHERE { ?h property:voice_actor ?a . ?h rdf:type ontology:television_genre . ?a rdf:type ontology:common_name } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Avatar:_The_Last_Airbender property:voice_actor ?v . ?v rdf:type ontology:television_genre } } . FILTER ( ?z > ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q847219
P725
Q502895 Q15961987
USER
And how about Pururun! Shizuku-chan?
(c(Q15961987),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q847219
relation P725
type Q15961987
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?o ) WHERE { ?z property:P725 ?n . ?z rdf:type ontology:Q15961987 . ?n rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?o > ?c ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { resource:Q847219 property:P725 ?x . ?x rdf:type ontology:Q15961987 } } }
Pururun! Shizuku-chan
action count
action greater
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Pururun! Shizuku-chan
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?o ) WHERE { ?z property:voice_actor ?n . ?z rdf:type ontology:television_genre . ?n rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?o > ?c ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { resource:Pururun!_Shizuku-chan property:voice_actor ?x . ?x rdf:type ontology:television_genre } } }
[]
common name television genre
SYSTEM
12
Q24034511 Q11296848 Q7615342 Q3235151 Q576501 Q22773153 Q18790 Q53093 Q753848 Q5415 Q886 Q2750339
(c(Q15961987),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q847219
relation P725
type Q15961987
[ANSWER]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?o ) WHERE { ?z property:P725 ?n . ?z rdf:type ontology:Q15961987 . ?n rdf:type ontology:Q502895 } GROUP BY ?z } . FILTER ( ?o > ?c ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { resource:Q847219 property:P725 ?x . ?x rdf:type ontology:Q15961987 } } }
Voltron: Legendary Defender Kiteretsu Daihyakka Steven Universe VeggieTales Garfield and Friends Milo Murphy's Law The Legend of Korra Adventure Time TaleSpin My Little Pony: Friendship Is Magic The Simpsons Hellsing Ultimate
12
action count
action greater
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Pururun! Shizuku-chan
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?t ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?o ) WHERE { ?z property:voice_actor ?n . ?z rdf:type ontology:television_genre . ?n rdf:type ontology:common_name } GROUP BY ?z } . FILTER ( ?o > ?c ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?c ) WHERE { resource:Pururun!_Shizuku-chan property:voice_actor ?x . ?x rdf:type ontology:television_genre } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q23506296 Q12152
P702 P2293
Q863908
USER
Which nucleic acid sequences have genetic connection with myocardial infarction or are the gene that encodes hypothetical protein    HMPREF0351_12143 ?
OR((Q12152,P2293,c(Q863908)), (Q23506296,P702,c(Q863908)))
action filter_type
action union
action find
entity Q12152
relation P2293
action find
entity Q23506296
relation P702
type Q863908
{'OR': [['Q12152', 'P2293', {'concept': 'Q863908'}], ['Q23506296', 'P702', {'concept': 'Q863908'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q12152 property:P2293 ?q } UNION { resource:Q23506296 property:P702 ?q } } . ?q rdf:type ontology:Q863908 }
hypothetical protein    HMPREF0351_12143 myocardial infarction
action filter_type
action union
action find
entity myocardial infarction
relation genetic association
action find
entity hypothetical protein    HMPREF0351_12143
relation encoded by
type nucleic acid sequence
{'OR': [['myocardial infarction', 'genetic association', {'concept': 'nucleic acid sequence'}], ['hypothetical protein    HMPREF0351_12143', 'encoded by', {'concept': 'nucleic acid sequence'}]]}
SELECT DISTINCT ?q WHERE { { { resource:myocardial_infarction property:genetic_association ?q } UNION { resource:hypothetical_protein____HMPREF0351_12143 property:encoded_by ?q } } . ?q rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18053521 Q23184659 Q18037015 Q18042029 Q18056131
SYSTEM
PHACTR1, hypothetical protein    HMPREF0351_12143, PLCL2, WDR12, MIA3
Q18053521 Q23184659 Q18037015 Q18042029 Q18056131
OR((Q12152,P2293,c(Q863908)), (Q23506296,P702,c(Q863908)))
action filter_type
action union
action find
entity Q12152
relation P2293
action find
entity Q23506296
relation P702
type Q863908
[ANSWERS]
{'OR': [['Q12152', 'P2293', {'concept': 'Q863908'}], ['Q23506296', 'P702', {'concept': 'Q863908'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q12152 property:P2293 ?q } UNION { resource:Q23506296 property:P702 ?q } } . ?q rdf:type ontology:Q863908 }
PHACTR1 hypothetical protein    HMPREF0351_12143 PLCL2 WDR12 MIA3
PHACTR1, hypothetical protein HMPREF0351_12143, PLCL2, WDR12 and MIA3 have genetic connection with myocardial infarction or are the gene that encodes hypothetical protein HMPREF0351_12143
PHACTR1 hypothetical protein    HMPREF0351_12143 PLCL2 WDR12 MIA3
action filter_type
action union
action find
entity myocardial infarction
relation genetic association
action find
entity hypothetical protein    HMPREF0351_12143
relation encoded by
type nucleic acid sequence
{'OR': [['myocardial infarction', 'genetic association', {'concept': 'nucleic acid sequence'}], ['hypothetical protein    HMPREF0351_12143', 'encoded by', {'concept': 'nucleic acid sequence'}]]}
SELECT DISTINCT ?q WHERE { { { resource:myocardial_infarction property:genetic_association ?q } UNION { resource:hypothetical_protein____HMPREF0351_12143 property:encoded_by ?q } } . ?q rdf:type ontology:nucleic_acid_sequence }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q2032041 Q12152
P2176
Q8386
USER
Which drugs are prescribed for myocardial infarction and intermediate coronary syndrome ?
AND((Q12152,P2176,c(Q8386)), (Q2032041,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q12152
relation P2176
action find
entity Q2032041
relation P2176
type Q8386
{'AND': [['Q12152', 'P2176', {'concept': 'Q8386'}], ['Q2032041', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?d WHERE { resource:Q12152 property:P2176 ?d . resource:Q2032041 property:P2176 ?d . ?d rdf:type ontology:Q8386 }
intermediate coronary syndrome myocardial infarction
action filter_type
action intersection
action find
entity myocardial infarction
relation drug used for treatment
action find
entity intermediate coronary syndrome
relation drug used for treatment
type drug
{'AND': [['myocardial infarction', 'drug used for treatment', {'concept': 'drug'}], ['intermediate coronary syndrome', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?d WHERE { resource:myocardial_infarction property:drug_used_for_treatment ?d . resource:intermediate_coronary_syndrome property:drug_used_for_treatment ?d . ?d rdf:type ontology:drug }
[]
drug
Q4919218 Q2295855 Q415366 Q1851701 Q410291 Q307088
SYSTEM
Bivalirudin, eptifibatide, tirofiban, Dalteparin, verapamil, Abciximab
Q4919218 Q2295855 Q415366 Q1851701 Q410291 Q307088
AND((Q12152,P2176,c(Q8386)), (Q2032041,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q12152
relation P2176
action find
entity Q2032041
relation P2176
type Q8386
[ANSWERS] are prescribed for myocardial infarction and intermediate coronary syndrome
{'AND': [['Q12152', 'P2176', {'concept': 'Q8386'}], ['Q2032041', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?d WHERE { resource:Q12152 property:P2176 ?d . resource:Q2032041 property:P2176 ?d . ?d rdf:type ontology:Q8386 }
Bivalirudin eptifibatide tirofiban Dalteparin verapamil Abciximab
Bivalirudin, eptifibatide, tirofiban, Dalteparin, verapamil and Abciximab are prescribed for myocardial infarction and intermediate coronary syndrome
Bivalirudin eptifibatide tirofiban Dalteparin verapamil Abciximab
action filter_type
action intersection
action find
entity myocardial infarction
relation drug used for treatment
action find
entity intermediate coronary syndrome
relation drug used for treatment
type drug
{'AND': [['myocardial infarction', 'drug used for treatment', {'concept': 'drug'}], ['intermediate coronary syndrome', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?d WHERE { resource:myocardial_infarction property:drug_used_for_treatment ?d . resource:intermediate_coronary_syndrome property:drug_used_for_treatment ?d . ?d rdf:type ontology:drug }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1399937
P27
Q15617994
USER
How many administrative territories are Ford Sterling an inhabitant of ?
(Q1399937,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1399937
relation P27
type Q15617994
['Q1399937', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { resource:Q1399937 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Ford Sterling
action count
action filter_type
action find
entity Ford Sterling
relation country of citizenship
type designation for an administrative territorial entity
['Ford Sterling', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { resource:Ford_Sterling property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q1399937,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1399937
relation P27
type Q15617994
[ANSWER]
['Q1399937', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { resource:Q1399937 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Ford Sterling
relation country of citizenship
type designation for an administrative territorial entity
['Ford Sterling', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) WHERE { resource:Ford_Sterling property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q10288970
P27
Q15617994
USER
And what about George Sauma?
(Q10288970,P27,c(Q15617994))
action count
action filter_type
action find
entity Q10288970
relation P27
type Q15617994
['Q10288970', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { resource:Q10288970 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
George Sauma
action count
action filter_type
action find
entity George Sauma
relation country of citizenship
type designation for an administrative territorial entity
['George Sauma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { resource:George_Sauma property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q155
(Q10288970,P27,c(Q15617994))
action count
action filter_type
action find
entity Q10288970
relation P27
type Q15617994
[ANSWER]
['Q10288970', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { resource:Q10288970 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Brazil
1
action count
action filter_type
action find
entity George Sauma
relation country of citizenship
type designation for an administrative territorial entity
['George Sauma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { resource:George_Sauma property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q6304312
Q15617994
USER
And how about Judy?
(Q6304312,P27,c(Q15617994))
action count
action filter_type
action find
entity Q6304312
relation P27
type Q15617994
['Q6304312', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Q6304312 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Judy
action count
action filter_type
action find
entity Judy
relation country of citizenship
type designation for an administrative territorial entity
['Judy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Judy property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q6304312,P27,c(Q15617994))
action count
action filter_type
action find
entity Q6304312
relation P27
type Q15617994
[ANSWER]
['Q6304312', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Q6304312 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Judy
relation country of citizenship
type designation for an administrative territorial entity
['Judy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Judy property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q8386 Q732577 Q386724
USER
How many drugs were the main subjects of approximately 87 publications and works 's work ?
(c(Q732577)|c(Q386724),P921,c(Q8386))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q732577
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
value 87
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?s ) WHERE { VALUES ( ?u ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } . ?r rdf:type ?u } GROUP BY ?x } . FILTER ( ?s = 87 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type drug
type publication
action find_reverse_tuple_counts
relation main subject
type drug
type work
value 87
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?s ) WHERE { VALUES ( ?u ) { ( ontology:publication ) ( ontology:work ) } . ?r rdf:type ?u } GROUP BY ?x } . FILTER ( ?s = 87 ) }
[]
drug publication work
SYSTEM
3
Q153 Q130336 Q207843
(c(Q732577)|c(Q386724),P921,c(Q8386))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q732577
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
value 87
[ANSWER]
[[{'concept': 'Q732577'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?s ) WHERE { VALUES ( ?u ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } . ?r rdf:type ?u } GROUP BY ?x } . FILTER ( ?s = 87 ) }
ethanol Phenol Nitric Oxide
3
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type drug
type publication
action find_reverse_tuple_counts
relation main subject
type drug
type work
value 87
[[{'concept': 'publication'}, {'concept': 'work'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?s ) WHERE { VALUES ( ?u ) { ( ontology:publication ) ( ontology:work ) } . ?r rdf:type ?u } GROUP BY ?x } . FILTER ( ?s = 87 ) }
[]