Simple Question (Direct)
Simple Question
Q177926
P1303
Q34379
USER
Which musical instrument is played by Felix Ayo ?
(Q177926,P1303,c(Q34379))
action filter_type
action find
entity Q177926
relation P1303
type Q34379
['Q177926', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q34379 . resource:Q177926 property:P1303 ?b }
Felix Ayo
action filter_type
action find
entity Felix Ayo
relation instrument
type musical instrument
['Felix Ayo', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:musical_instrument . resource:Felix_Ayo property:instrument ?b }
[]
musical instrument
Q8355
SYSTEM
violin
Q8355
(Q177926,P1303,c(Q34379))
action filter_type
action find
entity Q177926
relation P1303
type Q34379
[ANSWER] is played by Felix Ayo
['Q177926', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q34379 . resource:Q177926 property:P1303 ?b }
violin
Violin is played by Felix Ayo
violin
action filter_type
action find
entity Felix Ayo
relation instrument
type musical instrument
['Felix Ayo', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:musical_instrument . resource:Felix_Ayo property:instrument ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8355
P828
Q12136
USER
Which disease is caused by that musical instrument ?
(c(Q12136),P828,Q8355)
action filter_type
action find_reverse
entity Q8355
relation P828
type Q12136
[{'concept': 'Q12136'}, 'P828', 'Q8355']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12136 . ?l property:P828 resource:Q8355 }
violin
action filter_type
action find_reverse
entity violin
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', 'violin']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:disease . ?l property:has_cause resource:violin }
[]
disease
Q9352582
SYSTEM
Fiddler's neck
Q9352582
(c(Q12136),P828,Q8355)
action filter_type
action find_reverse
entity Q8355
relation P828
type Q12136
[ANSWER] is caused by that musical instrument
[{'concept': 'Q12136'}, 'P828', 'Q8355']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12136 . ?l property:P828 resource:Q8355 }
Fiddler's neck
Fiddler's neck is caused by that musical instrument
Fiddler's neck
action filter_type
action find_reverse
entity violin
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', 'violin']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:disease . ?l property:has_cause resource:violin }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q9588
P674
Q502895 Q15850590 Q36649
USER
How many people are the name of the persons who plays a role in more number of theatrical genres or visual artss than Richard Nixon ?
(c(Q15850590)|c(Q36649),P674,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P674
type Q502895
type Q36649
action count
action filter_multi_types
action find_reverse
entity Q9588
relation P674
type Q15850590
type Q36649
[[{'concept': 'Q15850590'}, {'concept': 'Q36649'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:P674 ?f . ?s rdf:type ontology:Q15850590 . ?f rdf:type ontology:Q502895 } UNION { ?s property:P674 ?f . ?s rdf:type ontology:Q36649 . ?f rdf:type ontology:Q502895 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u property:P674 resource:Q9588 . { { ?u rdf:type ontology:Q15850590 } UNION { ?u rdf:type ontology:Q36649 } } } } . FILTER ( ?j > ?g ) }
Richard Nixon
action count
action greater
action union
action find_reverse_tuple_counts
relation characters
type common name
type theatrical genre
action find_reverse_tuple_counts
relation characters
type common name
type visual arts
action count
action filter_multi_types
action find_reverse
entity Richard Nixon
relation characters
type theatrical genre
type visual arts
[[{'concept': 'theatrical genre'}, {'concept': 'visual arts'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:characters ?f . ?s rdf:type ontology:theatrical_genre . ?f rdf:type ontology:common_name } UNION { ?s property:characters ?f . ?s rdf:type ontology:visual_arts . ?f rdf:type ontology:common_name } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u property:characters resource:Richard_Nixon . { { ?u rdf:type ontology:theatrical_genre } UNION { ?u rdf:type ontology:visual_arts } } } } . FILTER ( ?j > ?g ) }
[]
common name theatrical genre visual arts
SYSTEM
3
Q7322 Q15718786 Q15711674
(c(Q15850590)|c(Q36649),P674,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P674
type Q502895
type Q36649
action count
action filter_multi_types
action find_reverse
entity Q9588
relation P674
type Q15850590
type Q36649
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q36649'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:P674 ?f . ?s rdf:type ontology:Q15850590 . ?f rdf:type ontology:Q502895 } UNION { ?s property:P674 ?f . ?s rdf:type ontology:Q36649 . ?f rdf:type ontology:Q502895 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u property:P674 resource:Q9588 . { { ?u rdf:type ontology:Q15850590 } UNION { ?u rdf:type ontology:Q36649 } } } } . FILTER ( ?j > ?g ) }
Christopher Columbus Winona Zecora
3
action count
action greater
action union
action find_reverse_tuple_counts
relation characters
type common name
type theatrical genre
action find_reverse_tuple_counts
relation characters
type common name
type visual arts
action count
action filter_multi_types
action find_reverse
entity Richard Nixon
relation characters
type theatrical genre
type visual arts
[[{'concept': 'theatrical genre'}, {'concept': 'visual arts'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:characters ?f . ?s rdf:type ontology:theatrical_genre . ?f rdf:type ontology:common_name } UNION { ?s property:characters ?f . ?s rdf:type ontology:visual_arts . ?f rdf:type ontology:common_name } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u property:characters resource:Richard_Nixon . { { ?u rdf:type ontology:theatrical_genre } UNION { ?u rdf:type ontology:visual_arts } } } } . FILTER ( ?j > ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q830183
P674
Q502895 Q15850590 Q36649
USER
And what about Eve?
(c(Q15850590)|c(Q36649),P674,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P674
type Q502895
type Q36649
action count
action filter_multi_types
action find_reverse
entity Q830183
relation P674
type Q15850590
type Q36649
[[{'concept': 'Q15850590'}, {'concept': 'Q36649'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?k WHERE { VALUES ( ?b ) { ( ontology:Q15850590 ) ( ontology:Q36649 ) } . ?g rdf:type ?b } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { { ?q rdf:type ontology:Q36649 } UNION { ?q rdf:type ontology:Q15850590 } } . ?q property:P674 resource:Q830183 } } . FILTER ( ?w > ?u ) }
Eve
action count
action greater
action union
action find_reverse_tuple_counts
relation characters
type common name
type theatrical genre
action find_reverse_tuple_counts
relation characters
type common name
type visual arts
action count
action filter_multi_types
action find_reverse
entity Eve
relation characters
type theatrical genre
type visual arts
[[{'concept': 'theatrical genre'}, {'concept': 'visual arts'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?k WHERE { VALUES ( ?b ) { ( ontology:theatrical_genre ) ( ontology:visual_arts ) } . ?g rdf:type ?b } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { { ?q rdf:type ontology:visual_arts } UNION { ?q rdf:type ontology:theatrical_genre } } . ?q property:characters resource:Eve } } . FILTER ( ?w > ?u ) }
[]
common name theatrical genre visual arts
SYSTEM
79
Q2635523 Q1851366 Q3680198 Q6173387 Q17141 Q36724 Q7322 Q12591 Q955856 Q21916822 Q456931 Q206459 Q765624 Q312660 Q1234647 Q4679883 Q460763 Q13560546 Q234811 Q24061503 Q282220 Q1411 Q1413 Q1416 Q1140161 Q7207 Q223440 Q353188 Q603096 Q83235 Q15718786 Q38370 Q17410 Q128358 Q193232 Q8462 Q692 Q209535 Q236243 Q185476 Q76723 Q83159 Q3080825 Q215512 Q24062019 Q145746 Q80823 Q1773005 Q237201 Q229432 Q170172 Q3261049 Q9588 Q83808 Q66107 Q182637 Q5944261 Q19118331 Q318726 Q5816 Q230716 Q3275910 Q15711674 Q1771963 Q7647581 Q443256 Q981902 Q347133 Q983502 Q517 Q154732 Q568082 Q36517 Q745286 Q1960623 Q158707 Q190116 Q43954 Q236017
(c(Q15850590)|c(Q36649),P674,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P674
type Q502895
type Q36649
action count
action filter_multi_types
action find_reverse
entity Q830183
relation P674
type Q15850590
type Q36649
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q36649'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?k WHERE { VALUES ( ?b ) { ( ontology:Q15850590 ) ( ontology:Q36649 ) } . ?g rdf:type ?b } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { { ?q rdf:type ontology:Q36649 } UNION { ?q rdf:type ontology:Q15850590 } } . ?q property:P674 resource:Q830183 } } . FILTER ( ?w > ?u ) }
Henry Percy, 6th Earl of Northumberland Pier Francesco Orsini Claudio Rangoni Jeff Bowen Harvey Milk Attila the Hun Christopher Columbus Nebuchadnezzar II Pallas Giovanni Corrado Orsini Sextus Tarquinius Feodor II of Russia Willem Adriaan van der Stel Gaius Mucius Scaevola Mark Smeaton Adam Tas Benjamin Heidi Blickenstaff Emma, Lady Hamilton Petrus Kalden Judah Claudius Nero Otho Marina Mniszech Elizabeth I of England Lucius Junius Brutus Lucius Tarquinius Collatinus Leon Klinghoffer Horatio Nelson Winona Henry VIII Zhou Enlai Bayezid I Vasili IV of Russia Timur William Shakespeare False Dmitriy I Giulia Farnese Flavius Aetius Maurice de Saxe Clement VII Frances Nelson Levi Henning Huising Joseph Anne Boleyn Simeon Adrienne Lecouvreur Lucretia Boris Godunov Louis Ange Pitou Richard Nixon François Joseph Lefebvre Henry Kissinger Jane Seymour Hunter Bell Andrey Shchelkalov Publius Valerius Publicola Mao Zedong Poppaea Sabina Anne Françoise Elisabeth Lange Zecora Naphtali Susan Blackwell Marie Favart Charles Simon Favart George Boleyn, Viscount Rochford St. Nerses I Napoleon Agrippina the Younger Arshak II Francis Drake Sir Thomas Hardy, 1st Baronet Tsarevna Xenia Borisovna of Russia Pat Nixon Benvenuto Cellini Leo I Jiang Qing
79
action count
action greater
action union
action find_reverse_tuple_counts
relation characters
type common name
type theatrical genre
action find_reverse_tuple_counts
relation characters
type common name
type visual arts
action count
action filter_multi_types
action find_reverse
entity Eve
relation characters
type theatrical genre
type visual arts
[[{'concept': 'theatrical genre'}, {'concept': 'visual arts'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?k WHERE { VALUES ( ?b ) { ( ontology:theatrical_genre ) ( ontology:visual_arts ) } . ?g rdf:type ?b } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { { { ?q rdf:type ontology:visual_arts } UNION { ?q rdf:type ontology:theatrical_genre } } . ?q property:characters resource:Eve } } . FILTER ( ?w > ?u ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q177926
P27
Q15617994
USER
How many administrative territories are Felix Ayo a civilian of ?
(Q177926,P27,c(Q15617994))
action count
action filter_type
action find
entity Q177926
relation P27
type Q15617994
['Q177926', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q177926 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Felix Ayo
action count
action filter_type
action find
entity Felix Ayo
relation country of citizenship
type designation for an administrative territorial entity
['Felix Ayo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Felix_Ayo property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q29
(Q177926,P27,c(Q15617994))
action count
action filter_type
action find
entity Q177926
relation P27
type Q15617994
[ANSWER]
['Q177926', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Q177926 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Spain
1
action count
action filter_type
action find
entity Felix Ayo
relation country of citizenship
type designation for an administrative territorial entity
['Felix Ayo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { resource:Felix_Ayo 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
Q5040502
P27
Q15617994
USER
And how about Carl Lundgren?
(Q5040502,P27,c(Q15617994))
action count
action filter_type
action find
entity Q5040502
relation P27
type Q15617994
['Q5040502', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q5040502 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Carl Lundgren
action count
action filter_type
action find
entity Carl Lundgren
relation country of citizenship
type designation for an administrative territorial entity
['Carl Lundgren', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Carl_Lundgren property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q5040502,P27,c(Q15617994))
action count
action filter_type
action find
entity Q5040502
relation P27
type Q15617994
[ANSWER]
['Q5040502', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q5040502 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Carl Lundgren
relation country of citizenship
type designation for an administrative territorial entity
['Carl Lundgren', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Carl_Lundgren property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1685150
Q15617994
USER
And how about Jean-Paul Vinay?
(Q1685150,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1685150
relation P27
type Q15617994
['Q1685150', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:Q1685150 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Jean-Paul Vinay
action count
action filter_type
action find
entity Jean-Paul Vinay
relation country of citizenship
type designation for an administrative territorial entity
['Jean-Paul Vinay', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:Jean-Paul_Vinay property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q1685150,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1685150
relation P27
type Q15617994
[ANSWER]
['Q1685150', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:Q1685150 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Jean-Paul Vinay
relation country of citizenship
type designation for an administrative territorial entity
['Jean-Paul Vinay', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { resource:Jean-Paul_Vinay property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q159701
P828
Q2057971 Q12136
USER
How many health problems leads to lesser number of diseases than glaucoma ?
(c(Q12136),P828,c(Q2057971))
action count
action less
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_type
action find_reverse
entity Q159701
relation P828
type Q12136
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?n ) WHERE { ?y rdf:type ontology:Q2057971 . ?s rdf:type ontology:Q12136 . ?s property:P828 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P828 resource:Q159701 . ?c rdf:type ontology:Q12136 } } . FILTER ( ?n < ?v ) }
glaucoma
action count
action less
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_type
action find_reverse
entity glaucoma
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?n ) WHERE { ?y rdf:type ontology:health_problem . ?s rdf:type ontology:disease . ?s property:has_cause ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:has_cause resource:glaucoma . ?c rdf:type ontology:disease } } . FILTER ( ?n < ?v ) }
[]
health problem disease
SYSTEM
103
Q972514 Q83319 Q271759 Q41478 Q1346016 Q1909343 Q18554545 Q7080278 Q836356 Q721073 Q1485 Q1186703 Q18642366 Q121041 Q188151 Q15734316 Q599683 Q147778 Q243257 Q558070 Q41571 Q1077139 Q221159 Q3339235 Q183392 Q155857 Q131742 Q7206990 Q2753827 Q604075 Q192100 Q746001 Q12167 Q5064113 Q1899576 Q478389 Q1704044 Q6673122 Q12090 Q8084905 Q180152 Q12152 Q1135338 Q12156 Q217519 Q2047938 Q2351083 Q3043145 Q199804 Q13365776 Q511097 Q7331102 Q847057 Q727028 Q3149939 Q18554068 Q42982 Q3043158 Q5384031 Q847583 Q460167 Q767485 Q799615 Q32446 Q662298 Q1518637 Q5160454 Q3087172 Q181754 Q68833 Q105688 Q1601794 Q11085 Q378681 Q221668 Q124604 Q281928 Q79793 Q4366062 Q2450598 Q2064603 Q661015 Q12204 Q12206 Q4862390 Q477390 Q736715 Q12125 Q273510 Q12199 Q12195 Q124407 Q179945 Q23037744 Q29496 Q152100 Q16244733 Q943897 Q133823 Q664174 Q133780 Q15715457 Q2840
(c(Q12136),P828,c(Q2057971))
action count
action less
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_type
action find_reverse
entity Q159701
relation P828
type Q12136
[ANSWER]
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?n ) WHERE { ?y rdf:type ontology:Q2057971 . ?s rdf:type ontology:Q12136 . ?s property:P828 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P828 resource:Q159701 . ?c rdf:type ontology:Q12136 } } . FILTER ( ?n < ?v ) }
optic neuritis typhoid fever porphyria hemorrhoid pernicious anemia dermatophytosis angle-closure glaucoma Oguchi disease croup delusional disorder systemic lupus erythematosus demyelinating disease intoxication appendicitis ischemia underlying disease Brugada syndrome liver cirrhosis chikungunya pelvic inflammatory disease epilepsy tic disorder schistosomiasis nervous system disease rickets rubella hepatitis podoconiosis Pigment dispersion syndrome multiple endocrine neoplasia type 2A lymphatic filariasis Thromboangiitis obliterans malnutrition Cerebrospinal fluid leak Vasa praevia kyphosis portal vein thrombosis thyroid gland disease Cholera autoimmune neuromuscular disease Vitiligo myocardial infarction Bell's palsy malaria bubonic plague side effect disease of metabolism cytochrome P450 Oxidoreductase Deficiency chronic obstructive pulmonary disease uremia psoriatic arthritis alcohol abuse retinitis pigmentosa bacterial infectious disease neonatal alloimmune disease lens subluxation type I hypersensitivity mevalonic aciduria Epstein–Barr virus infection cardiomyopathy Meniere's disease respiratory failure osteitis fibrosa pulmonary fibrosis ectropion VIPoma congenital syphilis developmental disorder of mental health heart failure bone fracture hypoxia parasitic infectious disease Parkinson's disease peripheral artery disease acute cystitis portal hypertension social phobia measles Pneumococcal infection infective endocarditis pleomorphic adenoma achalasia tuberculosis diabetes mellitus brain ischemia Hyperinsulinism chronic kidney disease common cold candidiasis acquired immunodeficiency syndrome poliomyelitis type 1 diabetes mellitus psoriasis respiratory allergy leukemia nicotine addiction intestinal obstruction gastroparesis migraine asbestosis plague hepatobiliary disease influenza
103
action count
action less
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_type
action find_reverse
entity glaucoma
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?s ) AS ?n ) WHERE { ?y rdf:type ontology:health_problem . ?s rdf:type ontology:disease . ?s property:has_cause ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:has_cause resource:glaucoma . ?c rdf:type ontology:disease } } . FILTER ( ?n < ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q7331102
P828
Q2057971 Q12136
USER
And also tell me about alcohol abuse?
(c(Q12136),P828,c(Q2057971))
action count
action less
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_type
action find_reverse
entity Q7331102
relation P828
type Q12136
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P828 ?w . ?w rdf:type ontology:Q2057971 . ?o rdf:type ontology:Q12136 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:P828 resource:Q7331102 . ?h rdf:type ontology:Q12136 } } . FILTER ( ?a < ?z ) }
alcohol abuse
action count
action less
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_type
action find_reverse
entity alcohol abuse
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:has_cause ?w . ?w rdf:type ontology:health_problem . ?o rdf:type ontology:disease } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:has_cause resource:alcohol_abuse . ?h rdf:type ontology:disease } } . FILTER ( ?a < ?z ) }
[]
health problem disease
SYSTEM
80
Q83319 Q271759 Q41478 Q1346016 Q1909343 Q7080278 Q836356 Q721073 Q18642366 Q121041 Q188151 Q15734316 Q599683 Q147778 Q243257 Q558070 Q41571 Q1077139 Q221159 Q3339235 Q183392 Q155857 Q131742 Q7206990 Q2753827 Q604075 Q192100 Q746001 Q12167 Q5064113 Q478389 Q1704044 Q6673122 Q12090 Q180152 Q12152 Q1135338 Q217519 Q2047938 Q3043145 Q511097 Q727028 Q3149939 Q18554068 Q42982 Q847583 Q460167 Q767485 Q799615 Q32446 Q662298 Q1518637 Q5160454 Q181754 Q105688 Q11085 Q378681 Q221668 Q124604 Q281928 Q79793 Q4366062 Q2450598 Q2064603 Q661015 Q477390 Q736715 Q12125 Q273510 Q12195 Q179945 Q23037744 Q29496 Q152100 Q16244733 Q943897 Q664174 Q133780 Q15715457 Q2840
(c(Q12136),P828,c(Q2057971))
action count
action less
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
action count
action filter_type
action find_reverse
entity Q7331102
relation P828
type Q12136
[ANSWER]
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:P828 ?w . ?w rdf:type ontology:Q2057971 . ?o rdf:type ontology:Q12136 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:P828 resource:Q7331102 . ?h rdf:type ontology:Q12136 } } . FILTER ( ?a < ?z ) }
typhoid fever porphyria hemorrhoid pernicious anemia dermatophytosis Oguchi disease croup delusional disorder intoxication appendicitis ischemia underlying disease Brugada syndrome liver cirrhosis chikungunya pelvic inflammatory disease epilepsy tic disorder schistosomiasis nervous system disease rickets rubella hepatitis podoconiosis Pigment dispersion syndrome multiple endocrine neoplasia type 2A lymphatic filariasis Thromboangiitis obliterans malnutrition Cerebrospinal fluid leak kyphosis portal vein thrombosis thyroid gland disease Cholera Vitiligo myocardial infarction Bell's palsy bubonic plague side effect cytochrome P450 Oxidoreductase Deficiency psoriatic arthritis bacterial infectious disease neonatal alloimmune disease lens subluxation type I hypersensitivity cardiomyopathy Meniere's disease respiratory failure osteitis fibrosa pulmonary fibrosis ectropion VIPoma congenital syphilis heart failure hypoxia Parkinson's disease peripheral artery disease acute cystitis portal hypertension social phobia measles Pneumococcal infection infective endocarditis pleomorphic adenoma achalasia Hyperinsulinism chronic kidney disease common cold candidiasis poliomyelitis psoriasis respiratory allergy leukemia nicotine addiction intestinal obstruction gastroparesis asbestosis plague hepatobiliary disease influenza
80
action count
action less
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
action count
action filter_type
action find_reverse
entity alcohol abuse
relation has cause
type disease
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?a ) WHERE { ?o property:has_cause ?w . ?w rdf:type ontology:health_problem . ?o rdf:type ontology:disease } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h property:has_cause resource:alcohol_abuse . ?h rdf:type ontology:disease } } . FILTER ( ?a < ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q9332 Q12136
USER
How many behaviors are the causes of atmost 1 disease ?
(c(Q12136),P828,c(Q9332))
action count
action atmost
action find_reverse_tuple_counts
relation P828
type Q9332
type Q12136
value 1
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { FILTER ( ?d <= 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?d ) WHERE { ?a property:P828 ?o . ?o rdf:type ontology:Q9332 . ?a rdf:type ontology:Q12136 } GROUP BY ?o } }
action count
action atmost
action find_reverse_tuple_counts
relation has cause
type behavior
type disease
value 1
[{'concept': 'disease'}, 'has cause', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { FILTER ( ?d <= 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?d ) WHERE { ?a property:has_cause ?o . ?o rdf:type ontology:behavior . ?a rdf:type ontology:disease } GROUP BY ?o } }
[]
behavior disease
SYSTEM
3
Q174876 Q600571 Q6082705
(c(Q12136),P828,c(Q9332))
action count
action atmost
action find_reverse_tuple_counts
relation P828
type Q9332
type Q12136
value 1
[ANSWER]
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q9332'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { FILTER ( ?d <= 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?d ) WHERE { ?a property:P828 ?o . ?o rdf:type ontology:Q9332 . ?a rdf:type ontology:Q12136 } GROUP BY ?o } }
breastfeeding abuse Islamic extremism
3
action count
action atmost
action find_reverse_tuple_counts
relation has cause
type behavior
type disease
value 1
[{'concept': 'disease'}, 'has cause', {'concept': 'behavior'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { FILTER ( ?d <= 1 ) . { SELECT DISTINCT ?o ( COUNT ( ?a ) AS ?d ) WHERE { ?a property:has_cause ?o . ?o rdf:type ontology:behavior . ?a rdf:type ontology:disease } GROUP BY ?o } }
[]