Simple Question (Direct)
Simple Question
Q381752
P509
Q2057971
USER
What lead to the death of Titu Cusi ?
(Q381752,P509,c(Q2057971))
action filter_type
action find
entity Q381752
relation P509
type Q2057971
['Q381752', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?m WHERE { resource:Q381752 property:P509 ?m . ?m rdf:type ontology:Q2057971 }
Titu Cusi
action filter_type
action find
entity Titu Cusi
relation cause of death
type health problem
['Titu Cusi', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?m WHERE { resource:Titu_Cusi property:cause_of_death ?m . ?m rdf:type ontology:health_problem }
[]
health problem
Q12214
SYSTEM
smallpox
Q12214
(Q381752,P509,c(Q2057971))
action filter_type
action find
entity Q381752
relation P509
type Q2057971
In [ANSWER] lead to the death of Titu Cusi
['Q381752', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?m WHERE { resource:Q381752 property:P509 ?m . ?m rdf:type ontology:Q2057971 }
smallpox
In smallpox lead to the death of Titu Cusi
smallpox
action filter_type
action find
entity Titu Cusi
relation cause of death
type health problem
['Titu Cusi', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?m WHERE { resource:Titu_Cusi property:cause_of_death ?m . ?m rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q381752
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q12214,P27,c(Q15617994))
action filter_type
action find
entity Q381752
relation P27
type Q15617994
['Q12214', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q381752 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Titu Cusi
action filter_type
action find
entity Titu Cusi
relation country of citizenship
type designation for an administrative territorial entity
['smallpox', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Titu_Cusi property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419
SYSTEM
Peru
Q419
(Q12214,P27,c(Q15617994))
action filter_type
action find
entity Q381752
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q12214', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q381752 property:P27 ?a . ?a rdf:type ontology:Q15617994 }
Peru
Peru is the country of citizenship of that person
Peru
action filter_type
action find
entity Titu Cusi
relation country of citizenship
type designation for an administrative territorial entity
['smallpox', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Titu_Cusi property:country_of_citizenship ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q381752
P22
Q502895
USER
How many people were the father of Titu Cusi ?
(Q381752,P22,c(Q502895))
action count
action filter_type
action find
entity Q381752
relation P22
type Q502895
['Q381752', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q381752 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Titu Cusi
action count
action filter_type
action find
entity Titu Cusi
relation father
type common name
['Titu Cusi', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Titu_Cusi property:father ?s . ?s rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q332049
(Q381752,P22,c(Q502895))
action count
action filter_type
action find
entity Q381752
relation P22
type Q502895
[ANSWER]
['Q381752', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q381752 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Manco Inca Yupanqui
1
action count
action filter_type
action find
entity Titu Cusi
relation father
type common name
['Titu Cusi', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Titu_Cusi property:father ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q381752
P1196
Q1931388
USER
What situation did that person die in ?
action filter_type
action find
entity Q381752
relation P1196
type Q1931388
SELECT DISTINCT ?v WHERE { resource:Q381752 property:P1196 ?v . ?v rdf:type ontology:Q1931388 }
Titu Cusi
action filter_type
action find
entity Titu Cusi
relation manner of death
type cause of death
SELECT DISTINCT ?v WHERE { resource:Titu_Cusi property:manner_of_death ?v . ?v rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
action filter_type
action find
entity Q381752
relation P1196
type Q1931388
That person died in [ANSWER]
SELECT DISTINCT ?v WHERE { resource:Q381752 property:P1196 ?v . ?v rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Titu Cusi
relation manner of death
type cause of death
SELECT DISTINCT ?v WHERE { resource:Titu_Cusi property:manner_of_death ?v . ?v rdf:type ontology:cause_of_death }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P689
Q25570959 Q4936952 Q2057971
USER
Which health problems afflict max number of animal structures or anatomical structures ?
(c(Q2057971),P689,c(Q25570959)|c(Q4936952))
action argmax
action union
action find_tuple_counts
relation P689
type Q2057971
type Q25570959
action find_tuple_counts
relation P689
type Q2057971
type Q4936952
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q25570959'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:Q25570959 ) ( ontology:Q4936952 ) } . ?y rdf:type ?h } GROUP BY ?l } . FILTER ( ?v = ?n ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ?i . VALUES ( ?i ) { ( ontology:Q25570959 ) ( ontology:Q4936952 ) } } GROUP BY ?k } } }
action argmax
action union
action find_tuple_counts
relation afflicts
type health problem
type animal structure
action find_tuple_counts
relation afflicts
type health problem
type anatomical structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'animal structure'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:animal_structure ) ( ontology:anatomical_structure ) } . ?y rdf:type ?h } GROUP BY ?l } . FILTER ( ?v = ?n ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ?i . VALUES ( ?i ) { ( ontology:animal_structure ) ( ontology:anatomical_structure ) } } GROUP BY ?k } } }
[]
animal structure anatomical structure health problem
Q154869 Q504775 Q6853
SYSTEM
hepatitis C, urinary bladder cancer, hepatitis B
Q154869 Q6742925 Q3055380 Q147778 Q857667 Q131742 Q6853 Q697117 Q3392853 Q929737 Q18557753 Q5518905 Q7578540 Q4959796 Q8084905 Q708176 Q949302 Q190805 Q18554589 Q18556093 Q3286546 Q4116663 Q504775 Q18555209 Q2912193 Q1545572 Q3843811 Q21128620 Q1194557 Q18554893 Q18553644 Q476921 Q18554220 Q6708237 Q16678483 Q4941552 Q5442760 Q5325633 Q18553634
(c(Q2057971),P689,c(Q25570959)|c(Q4936952))
action argmax
action union
action find_tuple_counts
relation P689
type Q2057971
type Q25570959
action find_tuple_counts
relation P689
type Q2057971
type Q4936952
[ANSWERS] afflict max number of animal structures or anatomical structures
[{'concept': 'Q2057971'}, 'P689', [{'concept': 'Q25570959'}, {'concept': 'Q4936952'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:Q25570959 ) ( ontology:Q4936952 ) } . ?y rdf:type ?h } GROUP BY ?l } . FILTER ( ?v = ?n ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ?i . VALUES ( ?i ) { ( ontology:Q25570959 ) ( ontology:Q4936952 ) } } GROUP BY ?k } } }
hepatitis C male reproductive system disease intestinal disease liver cirrhosis pulmonary edema hepatitis hepatitis B Spinal disc herniation lung disease liver disease laryngeal disease gallbladder disease splenic disease breast disease autoimmune neuromuscular disease arthropathy skin disease heart disease hepatic infarction male reproductive organ cancer respiratory disease musculoskeletal system disease urinary bladder cancer nose disease esophageal disease splenic infarction immune system disease spleen injury laryngitis ocular melanoma immune system cancer kidney failure female reproductive organ cancer lymphatic system disease vestibular disease bone disease female reproductive system disease auditory system disease lymphatic system cancer
Hepatitis C, urinary bladder cancer and hepatitis B afflict max number of animal structures or anatomical structures
hepatitis C urinary bladder cancer hepatitis B
action argmax
action union
action find_tuple_counts
relation afflicts
type health problem
type animal structure
action find_tuple_counts
relation afflicts
type health problem
type anatomical structure
[{'concept': 'health problem'}, 'afflicts', [{'concept': 'animal structure'}, {'concept': 'anatomical structure'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?y ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:animal_structure ) ( ontology:anatomical_structure ) } . ?y rdf:type ?h } GROUP BY ?l } . FILTER ( ?v = ?n ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ?i . VALUES ( ?i ) { ( ontology:animal_structure ) ( ontology:anatomical_structure ) } } GROUP BY ?k } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q2057971 Q1441305
USER
How many medical signs are caused by approximately 1 health problem ?
(c(Q1441305),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
value 1
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?s ) WHERE { ?o property:P828 ?b . ?o rdf:type ontology:Q1441305 . ?b rdf:type ontology:Q2057971 } GROUP BY ?o } . FILTER ( ?s = 1 ) }
action count
action approx
action find_tuple_counts
relation has cause
type medical sign
type health problem
value 1
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?s ) WHERE { ?o property:has_cause ?b . ?o rdf:type ontology:medical_sign . ?b rdf:type ontology:health_problem } GROUP BY ?o } . FILTER ( ?s = 1 ) }
[]
health problem medical sign
SYSTEM
6
Q1938763 Q189643 Q1404110 Q1566762 Q5893790 Q21402569
(c(Q1441305),P828,c(Q2057971))
action count
action approx
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
value 1
[ANSWER]
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?s ) WHERE { ?o property:P828 ?b . ?o rdf:type ontology:Q1441305 . ?b rdf:type ontology:Q2057971 } GROUP BY ?o } . FILTER ( ?s = 1 ) }
fecal vomiting delusion greyout steeple sign Honeycombing rice water diarrhea
6
action count
action approx
action find_tuple_counts
relation has cause
type medical sign
type health problem
value 1
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?s ) WHERE { ?o property:has_cause ?b . ?o rdf:type ontology:medical_sign . ?b rdf:type ontology:health_problem } GROUP BY ?o } . FILTER ( ?s = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q419 Q294362
P17
Q1048835
USER
How many political territories do Peru or urban and regional transportation belong to ?
(Q419,P17,c(Q1048835)) (Q294362,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q419
relation P17
type Q1048835
action filter_type
action find
entity Q294362
relation P17
type Q1048835
['Q419', 'P17', {'concept': 'Q1048835'}] ['Q294362', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { resource:Q419 property:P17 ?e . ?e rdf:type ontology:Q1048835 } UNION { ?e rdf:type ontology:Q1048835 . resource:Q294362 property:P17 ?e } }
Peru urban and regional transportation
action count
action union
action filter_type
action find
entity Peru
relation country
type political territorial entity
action filter_type
action find
entity urban and regional transportation
relation country
type political territorial entity
['Peru', 'country', {'concept': 'political territorial entity'}] ['urban and regional transportation', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { resource:Peru property:country ?e . ?e rdf:type ontology:political_territorial_entity } UNION { ?e rdf:type ontology:political_territorial_entity . resource:urban_and_regional_transportation property:country ?e } }
[]
political territorial entity
SYSTEM
2
Q183 Q40
(Q419,P17,c(Q1048835)) (Q294362,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q419
relation P17
type Q1048835
action filter_type
action find
entity Q294362
relation P17
type Q1048835
[ANSWER]
['Q419', 'P17', {'concept': 'Q1048835'}] ['Q294362', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { resource:Q419 property:P17 ?e . ?e rdf:type ontology:Q1048835 } UNION { ?e rdf:type ontology:Q1048835 . resource:Q294362 property:P17 ?e } }
Germany Austria
2
action count
action union
action filter_type
action find
entity Peru
relation country
type political territorial entity
action filter_type
action find
entity urban and regional transportation
relation country
type political territorial entity
['Peru', 'country', {'concept': 'political territorial entity'}] ['urban and regional transportation', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { resource:Peru property:country ?e . ?e rdf:type ontology:political_territorial_entity } UNION { ?e rdf:type ontology:political_territorial_entity . resource:urban_and_regional_transportation property:country ?e } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q133087
P780
Q1441305 Q12136 Q2057971
USER
How many health problems are around the same number of medical signs and diseases a symtom of as gout ?
(c(Q2057971),P780,c(Q1441305)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action count
action filter_multi_types
action find
entity Q133087
relation P780
type Q1441305
type Q12136
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:Q1441305 ) ( ontology:Q12136 ) } . ?y rdf:type ?s } GROUP BY ?n } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q133087 property:P780 ?h . { { ?h rdf:type ontology:Q1441305 } UNION { ?h rdf:type ontology:Q12136 } } } } }
gout
action count
action approx
action union
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action find_tuple_counts
relation symptoms
type health problem
type disease
action count
action filter_multi_types
action find
entity gout
relation symptoms
type medical sign
type disease
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:medical_sign ) ( ontology:disease ) } . ?y rdf:type ?s } GROUP BY ?n } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:gout property:symptoms ?h . { { ?h rdf:type ontology:medical_sign } UNION { ?h rdf:type ontology:disease } } } } }
[]
medical sign disease health problem
SYSTEM
103
Q3281274 Q18589315 Q4813631 Q2583514 Q16889762 Q154869 Q19000456 Q7080278 Q2070695 Q836356 Q3508686 Q721073 Q5319554 Q623031 Q558077 Q7688951 Q3843800 Q585011 Q3508664 Q2388598 Q26492785 Q6853 Q5432941 Q191779 Q18553762 Q192100 Q39222 Q3508705 Q5064113 Q1198391 Q774483 Q17120992 Q190564 Q1154422 Q156103 Q10529545 Q127724 Q205214 Q12152 Q1515119 Q5526844 Q7243138 Q207133 Q12252367 Q174651 Q18554801 Q632228 Q1432717 Q18556319 Q3298999 Q4421929 Q4352832 Q180266 Q21505506 Q21505507 Q212961 Q6668132 Q2836 Q460167 Q124604 Q799615 Q1518637 Q18557231 Q1648128 Q19000484 Q264118 Q145790 Q2845978 Q378681 Q27164422 Q281928 Q15401621 Q4676384 Q506433 Q432396 Q959457 Q332293 Q133087 Q522163 Q21505526 Q9390463 Q1286320 Q1117652 Q3508585 Q7165022 Q1077139 Q4865826 Q5032577 Q17089792 Q335555 Q265936 Q1952467 Q29496 Q129279 Q18555385 Q2106232 Q25345593 Q208562 Q664174 Q1641153 Q14509067 Q18557404 Q26492775
(c(Q2057971),P780,c(Q1441305)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action count
action filter_multi_types
action find
entity Q133087
relation P780
type Q1441305
type Q12136
[ANSWER]
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:Q1441305 ) ( ontology:Q12136 ) } . ?y rdf:type ?s } GROUP BY ?n } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q133087 property:P780 ?h . { { ?h rdf:type ontology:Q1441305 } UNION { ?h rdf:type ontology:Q12136 } } } } }
Griscelli syndrome Cataract-microcornea syndrome dyskinetic cerebral palsy Argentine hemorrhagic fever multiple pterygium syndrome hepatitis C syphilitic alopecia Oguchi disease macrocytic anemia croup Saethre–Chotzen syndrome delusional disorder dysplastic nevus syndrome liver cancer Williams Syndrome Taussig–Bing syndrome chronic congestive splenomegaly Antley-Bixler syndrome Lasthenie de Ferjol syndrome Ollier disease hypertrichotic osteochondrodysplasia Cantu type hepatitis B hyperlipoproteinemia type IV Gilles de la Tourette syndrome migraine with aura lymphatic filariasis rabies Timothy syndrome Cerebrospinal fluid leak intracranial aneurysm Galactosemia Hyperglycerolemia Huntington's disease leukocyte-adhesion deficiency syndrome gastroenteritis hyperandrogenism cataract Guillain–Barré syndrome myocardial infarction Gerstmann syndrome Gastrojejunocolic fistula Primary hypertrophic osteoathropathy Klinefelter's syndrome atherosclerosis Bálint's syndrome multiple intestinal atresia Hajdu-Cheney syndrome Catatonic schizophrenia sea-blue histiocyte syndrome microcytic anemia Hippocampal sclerosis urofacial syndrome scarlet fever hypophosphatemic nephrolithiasis/osteoporosis 1 hypophosphatemic nephrolithiasis/osteoporosis 2 pancreatic cancer Loin pain hematuria syndrome aphasia Meniere's disease portal hypertension osteitis fibrosa VIPoma hypersplenism geniculate herpes zoster arteriosclerosis obliterans acute myeloid leukemia iridocyclitis stereotypic movement disorder peripheral artery disease X-linked cleft palate with or without ankyloglossia social phobia Trousseau sign of malignancy Acroosteolysis Trimethylaminuria achromatopsia inappropriate ADH syndrome carpal tunnel syndrome gout Sydenham's chorea myopathy, lactic acidosis, and sideroblastic anemia temtamy preaxial brachydactyly syndrome Schwannomatosis Thygeson's superficial punctate keratopathy ablepharon macrostomia syndrome pentalogy of Cantrell tic disorder Bart-Pumphrey syndrome Cannabinoid hyperemesis syndrome Psoriatic erythroderma Sjögren's syndrome Kawasaki disease hereditary multiple exostoses leukemia dysentery xanthomatosis Postanesthetic shivering Intermittent hydrarthrosis Marfan syndrome asbestosis secondary hypertrophic osteoarthropathy exanthem peroneal nerve paralysis poikiloderma with neutropenia
103
action count
action approx
action union
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action find_tuple_counts
relation symptoms
type health problem
type disease
action count
action filter_multi_types
action find
entity gout
relation symptoms
type medical sign
type disease
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:medical_sign ) ( ontology:disease ) } . ?y rdf:type ?s } GROUP BY ?n } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:gout property:symptoms ?h . { { ?h rdf:type ontology:medical_sign } UNION { ?h rdf:type ontology:disease } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q378681
P780
Q1441305 Q12136 Q2057971
USER
And how about peripheral artery disease?
(c(Q2057971),P780,c(Q1441305)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action count
action filter_multi_types
action find
entity Q378681
relation P780
type Q1441305
type Q12136
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?o ) WHERE { VALUES ( ?t ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } . ?x rdf:type ?t } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Q378681 property:P780 ?h . { { ?h rdf:type ontology:Q1441305 } UNION { ?h rdf:type ontology:Q12136 } } } } . FILTER ( ?o = ?j ) }
peripheral artery disease
action count
action approx
action union
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action find_tuple_counts
relation symptoms
type health problem
type disease
action count
action filter_multi_types
action find
entity peripheral artery disease
relation symptoms
type medical sign
type disease
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?o ) WHERE { VALUES ( ?t ) { ( ontology:disease ) ( ontology:medical_sign ) } . ?x rdf:type ?t } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:peripheral_artery_disease property:symptoms ?h . { { ?h rdf:type ontology:medical_sign } UNION { ?h rdf:type ontology:disease } } } } . FILTER ( ?o = ?j ) }
[]
medical sign disease health problem
SYSTEM
95
Q3281274 Q18589315 Q4813631 Q16889762 Q154869 Q19000456 Q7080278 Q2070695 Q836356 Q3508686 Q721073 Q5319554 Q623031 Q558077 Q7688951 Q3843800 Q585011 Q3508664 Q2388598 Q26492785 Q6853 Q5432941 Q191779 Q18553762 Q192100 Q3508705 Q5064113 Q774483 Q17120992 Q190564 Q1154422 Q156103 Q10529545 Q205214 Q12152 Q1515119 Q5526844 Q7243138 Q207133 Q12252367 Q174651 Q18554801 Q632228 Q1432717 Q18556319 Q3298999 Q4421929 Q4352832 Q180266 Q21505506 Q21505507 Q6668132 Q2836 Q460167 Q124604 Q799615 Q1518637 Q18557231 Q1648128 Q19000484 Q145790 Q2845978 Q378681 Q27164422 Q281928 Q15401621 Q4676384 Q506433 Q432396 Q959457 Q332293 Q133087 Q522163 Q21505526 Q9390463 Q1286320 Q1117652 Q3508585 Q1077139 Q4865826 Q5032577 Q17089792 Q335555 Q265936 Q1952467 Q129279 Q18555385 Q2106232 Q25345593 Q208562 Q664174 Q1641153 Q14509067 Q18557404 Q26492775
(c(Q2057971),P780,c(Q1441305)|c(Q12136))
action count
action approx
action union
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action count
action filter_multi_types
action find
entity Q378681
relation P780
type Q1441305
type Q12136
[ANSWER]
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q1441305'}, {'concept': 'Q12136'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?o ) WHERE { VALUES ( ?t ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } . ?x rdf:type ?t } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:Q378681 property:P780 ?h . { { ?h rdf:type ontology:Q1441305 } UNION { ?h rdf:type ontology:Q12136 } } } } . FILTER ( ?o = ?j ) }
Griscelli syndrome Cataract-microcornea syndrome dyskinetic cerebral palsy multiple pterygium syndrome hepatitis C syphilitic alopecia Oguchi disease macrocytic anemia croup Saethre–Chotzen syndrome delusional disorder dysplastic nevus syndrome liver cancer Williams Syndrome Taussig–Bing syndrome chronic congestive splenomegaly Antley-Bixler syndrome Lasthenie de Ferjol syndrome Ollier disease hypertrichotic osteochondrodysplasia Cantu type hepatitis B hyperlipoproteinemia type IV Gilles de la Tourette syndrome migraine with aura lymphatic filariasis Timothy syndrome Cerebrospinal fluid leak Galactosemia Hyperglycerolemia Huntington's disease leukocyte-adhesion deficiency syndrome gastroenteritis hyperandrogenism Guillain–Barré syndrome myocardial infarction Gerstmann syndrome Gastrojejunocolic fistula Primary hypertrophic osteoathropathy Klinefelter's syndrome atherosclerosis Bálint's syndrome multiple intestinal atresia Hajdu-Cheney syndrome Catatonic schizophrenia sea-blue histiocyte syndrome microcytic anemia Hippocampal sclerosis urofacial syndrome scarlet fever hypophosphatemic nephrolithiasis/osteoporosis 1 hypophosphatemic nephrolithiasis/osteoporosis 2 Loin pain hematuria syndrome aphasia Meniere's disease portal hypertension osteitis fibrosa VIPoma hypersplenism geniculate herpes zoster arteriosclerosis obliterans iridocyclitis stereotypic movement disorder peripheral artery disease X-linked cleft palate with or without ankyloglossia social phobia Trousseau sign of malignancy Acroosteolysis Trimethylaminuria achromatopsia inappropriate ADH syndrome carpal tunnel syndrome gout Sydenham's chorea myopathy, lactic acidosis, and sideroblastic anemia temtamy preaxial brachydactyly syndrome Schwannomatosis Thygeson's superficial punctate keratopathy ablepharon macrostomia syndrome tic disorder Bart-Pumphrey syndrome Cannabinoid hyperemesis syndrome Psoriatic erythroderma Sjögren's syndrome Kawasaki disease hereditary multiple exostoses dysentery xanthomatosis Postanesthetic shivering Intermittent hydrarthrosis Marfan syndrome asbestosis secondary hypertrophic osteoarthropathy exanthem peroneal nerve paralysis poikiloderma with neutropenia
95
action count
action approx
action union
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action find_tuple_counts
relation symptoms
type health problem
type disease
action count
action filter_multi_types
action find
entity peripheral artery disease
relation symptoms
type medical sign
type disease
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'medical sign'}, {'concept': 'disease'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?o ) WHERE { VALUES ( ?t ) { ( ontology:disease ) ( ontology:medical_sign ) } . ?x rdf:type ?t } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { resource:peripheral_artery_disease property:symptoms ?h . { { ?h rdf:type ontology:medical_sign } UNION { ?h rdf:type ontology:disease } } } } . FILTER ( ?o = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q7672526
P828
Q2057971 Q3839081
USER
How many disasters are caused by greater number of health problems than TWA Flight 841 ?
(c(Q3839081),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q7672526
relation P828
type Q3839081
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?j ) WHERE { ?f property:P828 ?t . ?t rdf:type ontology:Q2057971 . ?f rdf:type ontology:Q3839081 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q7672526 property:P828 ?c . ?c rdf:type ontology:Q3839081 } } . FILTER ( ?j > ?s ) }
TWA Flight 841
action count
action greater
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity TWA Flight 841
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?j ) WHERE { ?f property:has_cause ?t . ?t rdf:type ontology:health_problem . ?f rdf:type ontology:disaster } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:TWA_Flight_841 property:has_cause ?c . ?c rdf:type ontology:disaster } } . FILTER ( ?j > ?s ) }
[]
health problem disaster
SYSTEM
5
Q1470579 Q3589134 Q3589133 Q2036106 Q2035019
(c(Q3839081),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q7672526
relation P828
type Q3839081
[ANSWER]
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?j ) WHERE { ?f property:P828 ?t . ?t rdf:type ontology:Q2057971 . ?f rdf:type ontology:Q3839081 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q7672526 property:P828 ?c . ?c rdf:type ontology:Q3839081 } } . FILTER ( ?j > ?s ) }
Otter Valley polio epidemic measles epidemic France 2008 chikungunya epidemic on Réunion Polio Epidemic 1916 1854 Broad Street cholera outbreak
5
action count
action greater
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity TWA Flight 841
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?j ) WHERE { ?f property:has_cause ?t . ?t rdf:type ontology:health_problem . ?f rdf:type ontology:disaster } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:TWA_Flight_841 property:has_cause ?c . ?c rdf:type ontology:disaster } } . FILTER ( ?j > ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q11971365
P828
Q2057971 Q3839081
USER
And how about Førdesveten plane crash?
(c(Q3839081),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q11971365
relation P828
type Q3839081
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?p ) WHERE { ?l property:P828 ?z . ?l rdf:type ontology:Q3839081 . ?z rdf:type ontology:Q2057971 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ontology:Q3839081 . resource:Q11971365 property:P828 ?o } } . FILTER ( ?p > ?v ) }
Førdesveten plane crash
action count
action greater
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Førdesveten plane crash
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?p ) WHERE { ?l property:has_cause ?z . ?l rdf:type ontology:disaster . ?z rdf:type ontology:health_problem } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ontology:disaster . resource:Førdesveten_plane_crash property:has_cause ?o } } . FILTER ( ?p > ?v ) }
[]
health problem disaster
SYSTEM
5
Q1470579 Q3589134 Q3589133 Q2036106 Q2035019
(c(Q3839081),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q11971365
relation P828
type Q3839081
[ANSWER]
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?p ) WHERE { ?l property:P828 ?z . ?l rdf:type ontology:Q3839081 . ?z rdf:type ontology:Q2057971 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ontology:Q3839081 . resource:Q11971365 property:P828 ?o } } . FILTER ( ?p > ?v ) }
Otter Valley polio epidemic measles epidemic France 2008 chikungunya epidemic on Réunion Polio Epidemic 1916 1854 Broad Street cholera outbreak
5
action count
action greater
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Førdesveten plane crash
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?p ) WHERE { ?l property:has_cause ?z . ?l rdf:type ontology:disaster . ?z rdf:type ontology:health_problem } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o rdf:type ontology:disaster . resource:Førdesveten_plane_crash property:has_cause ?o } } . FILTER ( ?p > ?v ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q777289
P641
Q349
USER
What was the sport that Aurora F.C. was a part of ?
(Q777289,P641,c(Q349))
action filter_type
action find
entity Q777289
relation P641
type Q349
['Q777289', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q777289 property:P641 ?f . ?f rdf:type ontology:Q349 }
Aurora F.C.
action filter_type
action find
entity Aurora F.C.
relation sport
type sport
['Aurora F.C.', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Aurora_F.C. property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q777289,P641,c(Q349))
action filter_type
action find
entity Q777289
relation P641
type Q349
The sport that Aurora F.C. was a part of was the [ANSWER]
['Q777289', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q777289 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
The sport that Aurora F.C. was a part of was the association football
association football
action filter_type
action find
entity Aurora F.C.
relation sport
type sport
['Aurora F.C.', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Aurora_F.C. property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3802506
Q349
USER
And what about Isidro Sánchez García-Figueras?
(Q3802506,P641,c(Q349))
action filter_type
action find
entity Q3802506
relation P641
type Q349
['Q3802506', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q3802506 property:P641 ?r }
Isidro Sánchez García-Figueras
action filter_type
action find
entity Isidro Sánchez García-Figueras
relation sport
type sport
['Isidro Sánchez García-Figueras', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Isidro_Sánchez_García-Figueras property:sport ?r }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q3802506,P641,c(Q349))
action filter_type
action find
entity Q3802506
relation P641
type Q349
[ANSWER]
['Q3802506', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q3802506 property:P641 ?r }
association football
association football
action filter_type
action find
entity Isidro Sánchez García-Figueras
relation sport
type sport
['Isidro Sánchez García-Figueras', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Isidro_Sánchez_García-Figueras property:sport ?r }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q12195
P1542
Q3839081 Q1441305 Q2057971
USER
How many health problems are the cause of less number of disasters or medical signs than poliomyelitis ?
(c(Q2057971),P1542,c(Q3839081)|c(Q1441305))
action count
action less
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q3839081
action find_tuple_counts
relation P1542
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q12195
relation P1542
type Q3839081
type Q1441305
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q3839081'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?p WHERE { VALUES ( ?e ) { ( ontology:Q3839081 ) ( ontology:Q1441305 ) } . ?d rdf:type ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:Q3839081 ) ( ontology:Q1441305 ) } } . resource:Q12195 property:P1542 ?t } } . FILTER ( ?k < ?h ) }
poliomyelitis
action count
action less
action union
action find_tuple_counts
relation cause of
type health problem
type disaster
action find_tuple_counts
relation cause of
type health problem
type medical sign
action count
action filter_multi_types
action find
entity poliomyelitis
relation cause of
type disaster
type medical sign
[{'concept': 'health problem'}, 'cause of', [{'concept': 'disaster'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?p WHERE { VALUES ( ?e ) { ( ontology:disaster ) ( ontology:medical_sign ) } . ?d rdf:type ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:disaster ) ( ontology:medical_sign ) } } . resource:poliomyelitis property:cause_of ?t } } . FILTER ( ?k < ?h ) }
[]
disaster medical sign health problem
SYSTEM
38
Q1504570 Q12090 Q357522 Q3541798 Q5572555 Q3043135 Q12204 Q12206 Q39222 Q42982 Q2465347 Q5797309 Q155857 Q1899576 Q2753827 Q243257 Q241827 Q929963 Q844935 Q121041 Q15734316 Q599683 Q23037745 Q68833 Q8084905 Q943897 Q180152 Q147778 Q1186703 Q133823 Q217519 Q4330029 Q79793 Q4826344 Q133780 Q2840 Q131742 Q664174
(c(Q2057971),P1542,c(Q3839081)|c(Q1441305))
action count
action less
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q3839081
action find_tuple_counts
relation P1542
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q12195
relation P1542
type Q3839081
type Q1441305
[ANSWER]
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q3839081'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?p WHERE { VALUES ( ?e ) { ( ontology:Q3839081 ) ( ontology:Q1441305 ) } . ?d rdf:type ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:Q3839081 ) ( ontology:Q1441305 ) } } . resource:Q12195 property:P1542 ?t } } . FILTER ( ?k < ?h ) }
protein C deficiency Cholera Adipsia Tuberculosis of the adrenal glands glycerol kinase deficiency congenital lactase deficiency tuberculosis diabetes mellitus rabies type I hypersensitivity thyroid adenoma lacrimal duct obstruction rubella Vasa praevia Pigment dispersion syndrome chikungunya Upper airway resistance syndrome Primary polydipsia coronary artery disease appendicitis underlying disease Brugada syndrome pollen allergy bone fracture autoimmune neuromuscular disease gastroparesis Vitiligo liver cirrhosis demyelinating disease migraine bubonic plague airway obstruction measles Autoimmune inner ear disease plague influenza hepatitis asbestosis
38
action count
action less
action union
action find_tuple_counts
relation cause of
type health problem
type disaster
action find_tuple_counts
relation cause of
type health problem
type medical sign
action count
action filter_multi_types
action find
entity poliomyelitis
relation cause of
type disaster
type medical sign
[{'concept': 'health problem'}, 'cause of', [{'concept': 'disaster'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) ?p WHERE { VALUES ( ?e ) { ( ontology:disaster ) ( ontology:medical_sign ) } . ?d rdf:type ?e } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:disaster ) ( ontology:medical_sign ) } } . resource:poliomyelitis property:cause_of ?t } } . FILTER ( ?k < ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2840
P1542
Q3839081 Q1441305 Q2057971
USER
And what about influenza?
(c(Q2057971),P1542,c(Q3839081)|c(Q1441305))
action count
action less
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q3839081
action find_tuple_counts
relation P1542
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q2840
relation P1542
type Q3839081
type Q1441305
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q3839081'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) ?w WHERE { { ?w property:P1542 ?y . ?w rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q3839081 } UNION { ?w property:P1542 ?y . ?w rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q1441305 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Q2840 property:P1542 ?d . { { ?d rdf:type ontology:Q3839081 } UNION { ?d rdf:type ontology:Q1441305 } } } } . FILTER ( ?i < ?x ) }
influenza
action count
action less
action union
action find_tuple_counts
relation cause of
type health problem
type disaster
action find_tuple_counts
relation cause of
type health problem
type medical sign
action count
action filter_multi_types
action find
entity influenza
relation cause of
type disaster
type medical sign
[{'concept': 'health problem'}, 'cause of', [{'concept': 'disaster'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) ?w WHERE { { ?w property:cause_of ?y . ?w rdf:type ontology:health_problem . ?y rdf:type ontology:disaster } UNION { ?w property:cause_of ?y . ?w rdf:type ontology:health_problem . ?y rdf:type ontology:medical_sign } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:influenza property:cause_of ?d . { { ?d rdf:type ontology:disaster } UNION { ?d rdf:type ontology:medical_sign } } } } . FILTER ( ?i < ?x ) }
[]
disaster medical sign health problem
SYSTEM
30
Q1504570 Q357522 Q3541798 Q5572555 Q3043135 Q12204 Q12206 Q39222 Q2465347 Q5797309 Q155857 Q1899576 Q2753827 Q241827 Q929963 Q844935 Q15734316 Q599683 Q23037745 Q68833 Q8084905 Q180152 Q147778 Q1186703 Q217519 Q4330029 Q4826344 Q133780 Q131742 Q664174
(c(Q2057971),P1542,c(Q3839081)|c(Q1441305))
action count
action less
action union
action find_tuple_counts
relation P1542
type Q2057971
type Q3839081
action find_tuple_counts
relation P1542
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q2840
relation P1542
type Q3839081
type Q1441305
[ANSWER]
[{'concept': 'Q2057971'}, 'P1542', [{'concept': 'Q3839081'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) ?w WHERE { { ?w property:P1542 ?y . ?w rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q3839081 } UNION { ?w property:P1542 ?y . ?w rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q1441305 } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:Q2840 property:P1542 ?d . { { ?d rdf:type ontology:Q3839081 } UNION { ?d rdf:type ontology:Q1441305 } } } } . FILTER ( ?i < ?x ) }
protein C deficiency Adipsia Tuberculosis of the adrenal glands glycerol kinase deficiency congenital lactase deficiency tuberculosis diabetes mellitus rabies thyroid adenoma lacrimal duct obstruction rubella Vasa praevia Pigment dispersion syndrome Upper airway resistance syndrome Primary polydipsia coronary artery disease underlying disease Brugada syndrome pollen allergy bone fracture autoimmune neuromuscular disease Vitiligo liver cirrhosis demyelinating disease bubonic plague airway obstruction Autoimmune inner ear disease plague hepatitis asbestosis
30
action count
action less
action union
action find_tuple_counts
relation cause of
type health problem
type disaster
action find_tuple_counts
relation cause of
type health problem
type medical sign
action count
action filter_multi_types
action find
entity influenza
relation cause of
type disaster
type medical sign
[{'concept': 'health problem'}, 'cause of', [{'concept': 'disaster'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) ?w WHERE { { ?w property:cause_of ?y . ?w rdf:type ontology:health_problem . ?y rdf:type ontology:disaster } UNION { ?w property:cause_of ?y . ?w rdf:type ontology:health_problem . ?y rdf:type ontology:medical_sign } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { resource:influenza property:cause_of ?d . { { ?d rdf:type ontology:disaster } UNION { ?d rdf:type ontology:medical_sign } } } } . FILTER ( ?i < ?x ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3802506
P22
Q502895
USER
Who has Isidro Sánchez García-Figueras as a father ?
(c(Q502895),P22,Q3802506)
action filter_type
action find_reverse
entity Q3802506
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q3802506']
SELECT DISTINCT ?m WHERE { ?m property:P22 resource:Q3802506 . ?m rdf:type ontology:Q502895 }
Isidro Sánchez García-Figueras
action filter_type
action find_reverse
entity Isidro Sánchez García-Figueras
relation father
type common name
[{'concept': 'common name'}, 'father', 'Isidro Sánchez García-Figueras']
SELECT DISTINCT ?m WHERE { ?m property:father resource:Isidro_Sánchez_García-Figueras . ?m rdf:type ontology:common_name }
[]
common name
Q352313
SYSTEM
Quique Sánchez Flores
Q352313
(c(Q502895),P22,Q3802506)
action filter_type
action find_reverse
entity Q3802506
relation P22
type Q502895
[ANSWER] has Isidro Sánchez García-Figueras as a father
[{'concept': 'Q502895'}, 'P22', 'Q3802506']
SELECT DISTINCT ?m WHERE { ?m property:P22 resource:Q3802506 . ?m rdf:type ontology:Q502895 }
Quique Sánchez Flores
Quique Sánchez Flores has Isidro Sánchez García-Figueras as a father
Quique Sánchez Flores
action filter_type
action find_reverse
entity Isidro Sánchez García-Figueras
relation father
type common name
[{'concept': 'common name'}, 'father', 'Isidro Sánchez García-Figueras']
SELECT DISTINCT ?m WHERE { ?m property:father resource:Isidro_Sánchez_García-Figueras . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q352313
P21
Q290
USER
Which sex does that person possess ?
(Q352313,P21,c(Q290))
action filter_type
action find
entity Q352313
relation P21
type Q290
['Q352313', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q352313 property:P21 ?l . ?l rdf:type ontology:Q290 }
Quique Sánchez Flores
action filter_type
action find
entity Quique Sánchez Flores
relation gender
type sex
['Quique Sánchez Flores', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Quique_Sánchez_Flores property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q352313,P21,c(Q290))
action filter_type
action find
entity Q352313
relation P21
type Q290
That person possesses a [ANSWER]
['Q352313', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q352313 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Quique Sánchez Flores
relation gender
type sex
['Quique Sánchez Flores', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Quique_Sánchez_Flores property:gender ?l . ?l rdf:type ontology:sex }
[]