Simple Question (Direct)
Simple Question
Q4705657
P734
Q82799
USER
Who has the surname Alain Fournier ?
(Q4705657,P734,c(Q82799))
action filter_type
action find
entity Q4705657
relation P734
type Q82799
['Q4705657', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q4705657 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Alain Fournier
action filter_type
action find
entity Alain Fournier
relation family name
type name
['Alain Fournier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Alain_Fournier property:family_name ?p . ?p rdf:type ontology:name }
[]
name
Q21494576
SYSTEM
Fournier
Q21494576
(Q4705657,P734,c(Q82799))
action filter_type
action find
entity Q4705657
relation P734
type Q82799
De [ANSWER] has the surname Alain [ANSWER]
['Q4705657', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q4705657 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Fournier
De Fournier has the surname Alain Fournier
Fournier
action filter_type
action find
entity Alain Fournier
relation family name
type name
['Alain Fournier', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Alain_Fournier property:family_name ?p . ?p rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4705657
P101
Q1047113
USER
Which special field is the area of Alain Fournier ?
(Q4705657,P101,c(Q1047113))
action filter_type
action find
entity Q4705657
relation P101
type Q1047113
['Q4705657', 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?m WHERE { resource:Q4705657 property:P101 ?m . ?m rdf:type ontology:Q1047113 }
Alain Fournier
action filter_type
action find
entity Alain Fournier
relation field of work
type special field
['Alain Fournier', 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?m WHERE { resource:Alain_Fournier property:field_of_work ?m . ?m rdf:type ontology:special_field }
[]
special field
Q21198
SYSTEM
computer science
Q21198
(Q4705657,P101,c(Q1047113))
action filter_type
action find
entity Q4705657
relation P101
type Q1047113
[ANSWER] is the area of Alain Fournier
['Q4705657', 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?m WHERE { resource:Q4705657 property:P101 ?m . ?m rdf:type ontology:Q1047113 }
computer science
Computer science is the area of Alain Fournier
computer science
action filter_type
action find
entity Alain Fournier
relation field of work
type special field
['Alain Fournier', 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?m WHERE { resource:Alain_Fournier property:field_of_work ?m . ?m rdf:type ontology:special_field }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q13223627
Q1047113
USER
And also tell me about Oswald Renkonen?
(Q13223627,P101,c(Q1047113))
action filter_type
action find
entity Q13223627
relation P101
type Q1047113
['Q13223627', 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?y WHERE { resource:Q13223627 property:P101 ?y . ?y rdf:type ontology:Q1047113 }
Oswald Renkonen
action filter_type
action find
entity Oswald Renkonen
relation field of work
type special field
['Oswald Renkonen', 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?y WHERE { resource:Oswald_Renkonen property:field_of_work ?y . ?y rdf:type ontology:special_field }
[]
special field
Q502159 Q243748
SYSTEM
serology, bacteriology
Q502159 Q243748
(Q13223627,P101,c(Q1047113))
action filter_type
action find
entity Q13223627
relation P101
type Q1047113
[ANSWERS]
['Q13223627', 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?y WHERE { resource:Q13223627 property:P101 ?y . ?y rdf:type ontology:Q1047113 }
serology bacteriology
serology bacteriology
action filter_type
action find
entity Oswald Renkonen
relation field of work
type special field
['Oswald Renkonen', 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?y WHERE { resource:Oswald_Renkonen property:field_of_work ?y . ?y rdf:type ontology:special_field }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q4705657
P27
Q15617994
USER
How many administrative territories are the native countriesof Alain Fournier ?
(Q4705657,P27,c(Q15617994))
action count
action filter_type
action find
entity Q4705657
relation P27
type Q15617994
['Q4705657', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { resource:Q4705657 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Alain Fournier
action count
action filter_type
action find
entity Alain Fournier
relation country of citizenship
type designation for an administrative territorial entity
['Alain Fournier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { resource:Alain_Fournier property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q142
(Q4705657,P27,c(Q15617994))
action count
action filter_type
action find
entity Q4705657
relation P27
type Q15617994
[ANSWER]
['Q4705657', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { resource:Q4705657 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
France
1
action count
action filter_type
action find
entity Alain Fournier
relation country of citizenship
type designation for an administrative territorial entity
['Alain Fournier', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { resource:Alain_Fournier property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q19800644
Q15617994
USER
And also tell me about Athanasios Giannopoulos?
(Q19800644,P27,c(Q15617994))
action count
action filter_type
action find
entity Q19800644
relation P27
type Q15617994
['Q19800644', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q19800644 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Athanasios Giannopoulos
action count
action filter_type
action find
entity Athanasios Giannopoulos
relation country of citizenship
type designation for an administrative territorial entity
['Athanasios Giannopoulos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Athanasios_Giannopoulos property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q19800644,P27,c(Q15617994))
action count
action filter_type
action find
entity Q19800644
relation P27
type Q15617994
[ANSWER]
['Q19800644', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Q19800644 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Athanasios Giannopoulos
relation country of citizenship
type designation for an administrative territorial entity
['Athanasios Giannopoulos', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?x ) WHERE { resource:Athanasios_Giannopoulos property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4524665 Q21494576
P495 P17
Q15617994
USER
Which administrative territories are the origin of Fournier or are Szychtory present in ?
OR((Q21494576,P495,c(Q15617994)), (Q4524665,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q21494576
relation P495
action find
entity Q4524665
relation P17
type Q15617994
{'OR': [['Q21494576', 'P495', {'concept': 'Q15617994'}], ['Q4524665', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q4524665 property:P17 ?u } UNION { resource:Q21494576 property:P495 ?u } } . ?u rdf:type ontology:Q15617994 }
Szychtory Fournier
action filter_type
action union
action find
entity Fournier
relation country of origin
action find
entity Szychtory
relation country
type designation for an administrative territorial entity
{'OR': [['Fournier', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Szychtory', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Szychtory property:country ?u } UNION { resource:Fournier property:country_of_origin ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q212
SYSTEM
France, Ukraine
Q142 Q212
OR((Q21494576,P495,c(Q15617994)), (Q4524665,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q21494576
relation P495
action find
entity Q4524665
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q21494576', 'P495', {'concept': 'Q15617994'}], ['Q4524665', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q4524665 property:P17 ?u } UNION { resource:Q21494576 property:P495 ?u } } . ?u rdf:type ontology:Q15617994 }
France Ukraine
Which administrative territories are the origin of Fournier or are Szychtory present in
France Ukraine
action filter_type
action union
action find
entity Fournier
relation country of origin
action find
entity Szychtory
relation country
type designation for an administrative territorial entity
{'OR': [['Fournier', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Szychtory', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Szychtory property:country ?u } UNION { resource:Fournier property:country_of_origin ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q459381
P101
Q1047113 Q502895 Q2342494
USER
Which special fields are the field of work of approximately the same number of people or collectables as literary theory ?
(c(Q502895)|c(Q2342494),P101,c(Q1047113))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q1047113
type Q502895
action find_reverse_tuple_counts
relation P101
type Q1047113
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q459381
relation P101
type Q502895
type Q2342494
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P101 resource:Q459381 . { { ?g rdf:type ontology:Q502895 } UNION { ?g rdf:type ontology:Q2342494 } } } } . FILTER ( ?l = ?u ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?r WHERE { { ?a property:P101 ?r . ?r rdf:type ontology:Q1047113 . ?a rdf:type ontology:Q502895 } UNION { ?a property:P101 ?r . ?a rdf:type ontology:Q2342494 . ?r rdf:type ontology:Q1047113 } } GROUP BY ?r } }
literary theory
action approx
action union
action find_reverse_tuple_counts
relation field of work
type special field
type common name
action find_reverse_tuple_counts
relation field of work
type special field
type collectable
action count
action filter_multi_types
action find_reverse
entity literary theory
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:field_of_work resource:literary_theory . { { ?g rdf:type ontology:common_name } UNION { ?g rdf:type ontology:collectable } } } } . FILTER ( ?l = ?u ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?r WHERE { { ?a property:field_of_work ?r . ?r rdf:type ontology:special_field . ?a rdf:type ontology:common_name } UNION { ?a property:field_of_work ?r . ?a rdf:type ontology:collectable . ?r rdf:type ontology:special_field } } GROUP BY ?r } }
[]
special field common name collectable
Q207011 Q35395 Q614304
SYSTEM
neuroscience, phonetics, pharmacy
Q614304 Q26237583 Q2964004 Q121713 Q794605 Q1365243 Q499500 Q128406 Q7208 Q60195 Q182442 Q180502 Q583336 Q189329 Q7218 Q1407263 Q103824 Q1071 Q7215 Q788926 Q1333872 Q216685 Q2002157 Q384001 Q211500 Q837863 Q1773974 Q81009 Q123028 Q598976 Q105650 Q327092 Q208217 Q683455 Q2374463 Q177635 Q83042 Q376680 Q26237769 Q454812 Q40821 Q1660187 Q162555 Q411 Q631286 Q77604 Q6216 Q80006 Q739465 Q182468 Q864601 Q861689 Q7922 Q189553 Q213891 Q134435 Q7867 Q271707 Q120569 Q11351 Q213403 Q80015 Q745328 Q2445082 Q199655 Q47417 Q160039 Q1569011 Q647525 Q207434 Q2442870 Q173113 Q10379 Q435608 Q6497044 Q170978 Q4917288 Q2861470 Q840545 Q1461602 Q4260703 Q161437 Q2740627 Q1489271 Q171171 Q1066186 Q201486 Q80083 Q501778 Q102904 Q145903 Q7782365 Q1456948 Q898674 Q460162 Q1774688 Q9053037 Q5654877 Q461659 Q351870 Q33521 Q441 Q1221899 Q188449 Q17397651 Q5284418 Q382995 Q131089 Q2043282 Q28797 Q162606 Q10384 Q28793 Q10609775 Q11180 Q603441 Q459381 Q35395 Q502159 Q126552 Q27133094 Q165650 Q4356367 Q852732 Q1071953 Q81058 Q1430622 Q21583222 Q599991 Q207011 Q14565201 Q235007 Q11397 Q26331146 Q12128 Q3110778 Q164204 Q489119 Q170201 Q504033 Q39645 Q141495 Q1371704 Q23404 Q428691 Q1045712 Q15218776 Q77590 Q52106 Q2143884 Q1741922 Q243748 Q1038158
(c(Q502895)|c(Q2342494),P101,c(Q1047113))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q1047113
type Q502895
action find_reverse_tuple_counts
relation P101
type Q1047113
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q459381
relation P101
type Q502895
type Q2342494
[ANSWERS] are the field of work of approximately the same number of people or collectables as literary theory
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P101 resource:Q459381 . { { ?g rdf:type ontology:Q502895 } UNION { ?g rdf:type ontology:Q2342494 } } } } . FILTER ( ?l = ?u ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?r WHERE { { ?a property:P101 ?r . ?r rdf:type ontology:Q1047113 . ?a rdf:type ontology:Q502895 } UNION { ?a property:P101 ?r . ?a rdf:type ontology:Q2342494 . ?r rdf:type ontology:Q1047113 } } GROUP BY ?r } }
pharmacy ethnopolitics thoracic surgery acupuncture biblical studies tropical medicine clinical pathology pharmacology pathology semiotics plastic surgery parasitology research on Antisemitism liberal arts education toxicology forensic psychiatry hematology geography virology Infectious disease combinatorial optimization orthopedics family therapy historical geography pneumatics pure mathematics preventive medicine rhetoric pediatrics medical microbiology urology biomedical engineering literary science anatomical pathology data science nephrology neurology traumatology pediatric neurology forensic medicine surgery film studies oncology astrobiology numismatics radiology liberalism computer programming study of the Hebrew language hydrography biomedicine Education economics pedagogy otolaryngology geochronology topography psychiatry rheology gastroenterology organic chemistry naturopathy Obstetrics gynecology mathematical statistics Science, technology and society library science international economics econometrics Urban history behavioral economics human–computer interaction lepidopterology agronomy cardiology Ancient History history of literature robotics control engineering emergency medicine sports medicine computer-supported cooperative work railway engineering ophthalmology heliophysics eloquence dermatology science of history history of science humanities translation studies volcanology egyptology Theoretical ecology geobotany neonatology museology clinical pharmacology spatial planning International studies sociology of religion reproductive medicine applied mathematics botany gynaecology neurosurgery supersonic aerodynamics obstetrics legal science geodesy business administration applied science endocrinology geriatrics film theory information visualization internal medicine bibliometrics literary theory phonetics serology business informatics vaccine development media studies Philosophical theology proof theory medical genetics homeopathy space medicine rabbinic studies zoogeography neuroscience altmetrics cardiac surgery classical mechanics Serbo-Croatian studies dentistry thracology musicology Hellenic studies veterinary medicine oral and maxillofacial surgery semantics mathematical optimization etruscology anthropology computer engineering neuroeconomics orthopedic surgery civil engineering biogeography Social medicine pediatric urology bacteriology homiletics
Neuroscience, phonetics and pharmacy are the field of work of approximately the same number of people or collectables as literary theory
neuroscience phonetics pharmacy
action approx
action union
action find_reverse_tuple_counts
relation field of work
type special field
type common name
action find_reverse_tuple_counts
relation field of work
type special field
type collectable
action count
action filter_multi_types
action find_reverse
entity literary theory
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:field_of_work resource:literary_theory . { { ?g rdf:type ontology:common_name } UNION { ?g rdf:type ontology:collectable } } } } . FILTER ( ?l = ?u ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) ?r WHERE { { ?a property:field_of_work ?r . ?r rdf:type ontology:special_field . ?a rdf:type ontology:common_name } UNION { ?a property:field_of_work ?r . ?a rdf:type ontology:collectable . ?r rdf:type ontology:special_field } } GROUP BY ?r } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q207011
P361
Q28797
USER
What is that special field a component of ?
(Q207011,P361,c(Q28797))
action filter_type
action find
entity Q207011
relation P361
type Q28797
['Q207011', 'P361', {'concept': 'Q28797'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q28797 . resource:Q207011 property:P361 ?x }
neuroscience
action filter_type
action find
entity neuroscience
relation part of
type applied science
['neuroscience', 'part of', {'concept': 'applied science'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:applied_science . resource:neuroscience property:part_of ?x }
[]
applied science
Clarification for simple ques.
Q614304
SYSTEM
Did you mean pharmacy ?
Q207011 Q35395 Q614304
(Q207011,P361,c(Q28797)) (Q35395,P361,c(Q28797)) (Q614304,P361,c(Q28797))
[ANSWER]
['Q207011', 'P361', {'concept': 'Q28797'}] ['Q35395', 'P361', {'concept': 'Q28797'}] ['Q614304', 'P361', {'concept': 'Q28797'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q28797 . resource:Q207011 property:P361 ?x }
neuroscience phonetics pharmacy
Did you mean pharmacy ?
pharmacy
['neuroscience', 'part of', {'concept': 'applied science'}] ['phonetics', 'part of', {'concept': 'applied science'}] ['pharmacy', 'part of', {'concept': 'applied science'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:applied_science . resource:neuroscience property:part_of ?x }
[]
Simple Question (Coreferenced)
USER
No, I meant neuroscience. Could you tell me the answer for that?
(Q207011,P361,c(Q28797))
Q207011
['Q207011', 'P361', {'concept': 'Q28797'}]
['neuroscience', 'part of', {'concept': 'applied science'}]
[]
Q11661
SYSTEM
information technology
Q11661
(Q207011,P361,c(Q28797))
action filter_type
action find
entity Q207011
relation P361
type Q28797
That special field a component of is the [ANSWER]
['Q207011', 'P361', {'concept': 'Q28797'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q28797 . resource:Q207011 property:P361 ?x }
information technology
That special field a component of is the information technology
information technology
action filter_type
action find
entity neuroscience
relation part of
type applied science
['neuroscience', 'part of', {'concept': 'applied science'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:applied_science . resource:neuroscience property:part_of ?x }
[]