Simple Question (Direct)
Simple Question
Q3764760
P106
Q12737077
USER
What are the job of Gino Vinicio Gentili ?
(Q3764760,P106,c(Q12737077))
action filter_type
action find
entity Q3764760
relation P106
type Q12737077
['Q3764760', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3764760 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Gino Vinicio Gentili
action filter_type
action find
entity Gino Vinicio Gentili
relation occupation
type occupation
['Gino Vinicio Gentili', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Gino_Vinicio_Gentili property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q4773904 Q3621491
SYSTEM
anthropologist, archaeologist
Q4773904 Q3621491
(Q3764760,P106,c(Q12737077))
action filter_type
action find
entity Q3764760
relation P106
type Q12737077
The job of Gino Vinicio Gentili are an [ANSWERS]
['Q3764760', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3764760 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
anthropologist archaeologist
The job of Gino Vinicio Gentili are an anthropologist and archaeologist
anthropologist archaeologist
action filter_type
action find
entity Gino Vinicio Gentili
relation occupation
type occupation
['Gino Vinicio Gentili', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Gino_Vinicio_Gentili property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4773904 Q3621491
P425
Q1047113
USER
Who have those ones as the associated fields of occupation ?
(Q4773904,P425,c(Q1047113)) (Q3621491,P425,c(Q1047113))
action filter_type
action find
entity prev_answer
relation P425
type Q1047113
['Q4773904', 'P425', {'concept': 'Q1047113'}] ['Q3621491', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1047113 . VALUES ( ?k ) { ( resource:Q4773904 ) ( resource:Q3621491 ) } . ?k property:P425 ?l }
anthropologist archaeologist
action filter_type
action find
entity prev_answer
relation field of this occupation
type special field
['anthropologist', 'field of this occupation', {'concept': 'special field'}] ['archaeologist', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:special_field . VALUES ( ?k ) { ( resource:anthropologist ) ( resource:archaeologist ) } . ?k property:field_of_this_occupation ?l }
[]
special field
Q23404 Q23498
SYSTEM
anthropology, archaeology
Q23404 Q23498
(Q4773904,P425,c(Q1047113)) (Q3621491,P425,c(Q1047113))
action filter_type
action find
entity prev_answer
relation P425
type Q1047113
And [ANSWERS] have those ones as the associated fields of occupation
['Q4773904', 'P425', {'concept': 'Q1047113'}] ['Q3621491', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1047113 . VALUES ( ?k ) { ( resource:Q4773904 ) ( resource:Q3621491 ) } . ?k property:P425 ?l }
anthropology archaeology
And anthropology and archaeology have those ones as the associated fields of occupation
anthropology archaeology
action filter_type
action find
entity prev_answer
relation field of this occupation
type special field
['anthropologist', 'field of this occupation', {'concept': 'special field'}] ['archaeologist', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:special_field . VALUES ( ?k ) { ( resource:anthropologist ) ( resource:archaeologist ) } . ?k property:field_of_this_occupation ?l }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23404
P921
Q2342494
USER
Which collectable is that special field a main subject of ?
(c(Q2342494),P921,Q23404)
action filter_type
action find_reverse
entity Q23404
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q23404']
SELECT DISTINCT ?o WHERE { ?o property:P921 resource:Q23404 . ?o rdf:type ontology:Q2342494 }
anthropology
action filter_type
action find_reverse
entity anthropology
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'anthropology']
SELECT DISTINCT ?o WHERE { ?o property:main_subject resource:anthropology . ?o rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q23404
SYSTEM
Did you mean anthropology ?
Q23404 Q23498
(c(Q2342494),P921,Q23404) (c(Q2342494),P921,Q23498)
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q23404'] [{'concept': 'Q2342494'}, 'P921', 'Q23498']
SELECT DISTINCT ?o WHERE { ?o property:P921 resource:Q23404 . ?o rdf:type ontology:Q2342494 }
anthropology archaeology
Did you mean anthropology ?
anthropology
[{'concept': 'collectable'}, 'main subject', 'anthropology'] [{'concept': 'collectable'}, 'main subject', 'archaeology']
SELECT DISTINCT ?o WHERE { ?o property:main_subject resource:anthropology . ?o rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q2342494),P921,Q23404)
[{'concept': 'Q2342494'}, 'P921', 'Q23404']
[{'concept': 'collectable'}, 'main subject', 'anthropology']
[]
Q440914
SYSTEM
The Third Chimpanzee
Q440914
(c(Q2342494),P921,Q23404)
action filter_type
action find_reverse
entity Q23404
relation P921
type Q2342494
[ANSWER] is that special field a main subject of
[{'concept': 'Q2342494'}, 'P921', 'Q23404']
SELECT DISTINCT ?o WHERE { ?o property:P921 resource:Q23404 . ?o rdf:type ontology:Q2342494 }
The Third Chimpanzee
The Third Chimpanzee is that special field a main subject of
The Third Chimpanzee
action filter_type
action find_reverse
entity anthropology
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'anthropology']
SELECT DISTINCT ?o WHERE { ?o property:main_subject resource:anthropology . ?o rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q440914
P2860
Q234460
USER
Which text quotes that collectable ?
(c(Q234460),P2860,Q440914)
action filter_type
action find_reverse
entity Q440914
relation P2860
type Q234460
[{'concept': 'Q234460'}, 'P2860', 'Q440914']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q234460 . ?h property:P2860 resource:Q440914 }
The Third Chimpanzee
action filter_type
action find_reverse
entity The Third Chimpanzee
relation cites
type text
[{'concept': 'text'}, 'cites', 'The Third Chimpanzee']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:text . ?h property:cites resource:The_Third_Chimpanzee }
[]
text
Q1171367
SYSTEM
This is Biology: The Science of the Living World
Q1171367
(c(Q234460),P2860,Q440914)
action filter_type
action find_reverse
entity Q440914
relation P2860
type Q234460
That collectable [ANSWER]
[{'concept': 'Q234460'}, 'P2860', 'Q440914']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q234460 . ?h property:P2860 resource:Q440914 }
This is Biology: The Science of the Living World
That collectable This is Biology: The Science of the Living World
This is Biology: The Science of the Living World
action filter_type
action find_reverse
entity The Third Chimpanzee
relation cites
type text
[{'concept': 'text'}, 'cites', 'The Third Chimpanzee']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:text . ?h property:cites resource:The_Third_Chimpanzee }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q234460 Q2342494 Q223393
USER
Which texts inspired max number of collectables or literary genres ?
(c(Q2342494)|c(Q223393),P941,c(Q234460))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q234460
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q234460
type Q223393
[[{'concept': 'Q2342494'}, {'concept': 'Q223393'}], 'P941', {'concept': 'Q234460'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?i WHERE { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:Q2342494 ) ( ontology:Q223393 ) } } GROUP BY ?i } . FILTER ( ?z = ?o ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?w WHERE { { ?k property:P941 ?w . ?w rdf:type ontology:Q234460 . ?k rdf:type ontology:Q2342494 } UNION { ?k property:P941 ?w . ?w rdf:type ontology:Q234460 . ?k rdf:type ontology:Q223393 } } GROUP BY ?w } } }
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type text
type collectable
action find_reverse_tuple_counts
relation inspired by
type text
type literary genre
[[{'concept': 'collectable'}, {'concept': 'literary genre'}], 'inspired by', {'concept': 'text'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?i WHERE { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:collectable ) ( ontology:literary_genre ) } } GROUP BY ?i } . FILTER ( ?z = ?o ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?w WHERE { { ?k property:inspired_by ?w . ?w rdf:type ontology:text . ?k rdf:type ontology:collectable } UNION { ?k property:inspired_by ?w . ?w rdf:type ontology:text . ?k rdf:type ontology:literary_genre } } GROUP BY ?w } } }
[]
text collectable literary genre
Q48328 Q1845 Q509070
SYSTEM
Beowulf, Bible, The Vampyre
Q1845 Q27134855 Q509070 Q48328 Q27134782 Q2002867
(c(Q2342494)|c(Q223393),P941,c(Q234460))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q234460
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q234460
type Q223393
[ANSWERS] inspired max number of collectables or literary genres
[[{'concept': 'Q2342494'}, {'concept': 'Q223393'}], 'P941', {'concept': 'Q234460'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?i WHERE { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:Q2342494 ) ( ontology:Q223393 ) } } GROUP BY ?i } . FILTER ( ?z = ?o ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?w WHERE { { ?k property:P941 ?w . ?w rdf:type ontology:Q234460 . ?k rdf:type ontology:Q2342494 } UNION { ?k property:P941 ?w . ?w rdf:type ontology:Q234460 . ?k rdf:type ontology:Q223393 } } GROUP BY ?w } } }
Bible Little Briar Rose The Vampyre Beowulf The Beauty Sleeping in the Wood Sun, Moon, and Talia
Beowulf, Bible and The Vampyre inspired max number of collectables or literary genres
Beowulf Bible The Vampyre
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type text
type collectable
action find_reverse_tuple_counts
relation inspired by
type text
type literary genre
[[{'concept': 'collectable'}, {'concept': 'literary genre'}], 'inspired by', {'concept': 'text'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?i WHERE { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:collectable ) ( ontology:literary_genre ) } } GROUP BY ?i } . FILTER ( ?z = ?o ) . { SELECT DISTINCT ( MAX ( ?l ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?l ) ?w WHERE { { ?k property:inspired_by ?w . ?w rdf:type ontology:text . ?k rdf:type ontology:collectable } UNION { ?k property:inspired_by ?w . ?w rdf:type ontology:text . ?k rdf:type ontology:literary_genre } } GROUP BY ?w } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P941
Q234460 Q2342494 Q223393
USER
How many texts inspired lesser number of collectables or literary genres than that text ?
(c(Q2342494)|c(Q223393),P941,c(Q234460))
[[{'concept': 'Q2342494'}, {'concept': 'Q223393'}], 'P941', {'concept': 'Q234460'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?n ) { ( ?z ) ( ?x ) } . ?n property:P941 ?y } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q234460 . ?x rdf:type ontology:Q223393 }
[[{'concept': 'collectable'}, {'concept': 'literary genre'}], 'inspired by', {'concept': 'text'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?n ) { ( ?z ) ( ?x ) } . ?n property:inspired_by ?y } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:text . ?x rdf:type ontology:literary_genre }
[]
text collectable literary genre
Comparative|Count over More/Less|Mult. entity type|Clarification
Q1845
SYSTEM
Did you mean Bible ?
(c(Q2342494)|c(Q223393),P941,c(Q234460))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q223393'}], 'P941', {'concept': 'Q234460'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?n ) { ( ?z ) ( ?x ) } . ?n property:P941 ?y } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q234460 . ?x rdf:type ontology:Q223393 }
Did you mean Bible ?
Bible
[[{'concept': 'collectable'}, {'concept': 'literary genre'}], 'inspired by', {'concept': 'text'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?n ) { ( ?z ) ( ?x ) } . ?n property:inspired_by ?y } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:text . ?x rdf:type ontology:literary_genre }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q2342494)|c(Q223393),P941,c(Q234460))
[[{'concept': 'Q2342494'}, {'concept': 'Q223393'}], 'P941', {'concept': 'Q234460'}]
[[{'concept': 'collectable'}, {'concept': 'literary genre'}], 'inspired by', {'concept': 'text'}]
[]
SYSTEM
19
Q1775812 Q918060 Q16639772 Q9184 Q8065468 Q1136104 Q185427 Q1155892 Q1574072 Q3205402 Q279486 Q8269 Q785487 Q1428590 Q1217507 Q1214433 Q9190 Q27104919 Q772766
(c(Q2342494)|c(Q223393),P941,c(Q234460))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q223393'}], 'P941', {'concept': 'Q234460'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P941 ?y } UNION { ?x property:P941 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q234460 . ?x rdf:type ontology:Q223393 }
Mario and the Magician The Fox and the Hound The Rescuers Genesis The Adventures of Pinocchio Le Morte d'Arthur The Song of Roland Ab urbe condita libri Hamzanama The Sword in the Stone The Song of Hiawatha The Tale of Genji Le Chef-d'œuvre inconnu Beware of Pity The World of Yesterday Tribulations of a Chinaman in China Exodus Happy Dan, The Whistling Dog The Diary of Lady Murasaki
19
[[{'concept': 'collectable'}, {'concept': 'literary genre'}], 'inspired by', {'concept': 'text'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:inspired_by ?y } UNION { ?x property:inspired_by ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:text . ?x rdf:type ontology:literary_genre }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q21614234
P361
Q11862829 Q58778 Q1047113
USER
How many special fields are parts of less number of academic disciplines and systems than agricultural business and management ?
(c(Q1047113),P361,c(Q11862829)|c(Q58778))
action count
action less
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q58778
action count
action filter_multi_types
action find
entity Q21614234
relation P361
type Q11862829
type Q58778
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q58778'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?w WHERE { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:Q11862829 ) ( ontology:Q58778 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q21614234 property:P361 ?x . { { ?x rdf:type ontology:Q11862829 } UNION { ?x rdf:type ontology:Q58778 } } } } . FILTER ( ?o < ?i ) }
agricultural business and management
action count
action less
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type system
action count
action filter_multi_types
action find
entity agricultural business and management
relation part of
type academic discipline
type system
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'system'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?w WHERE { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:academic_discipline ) ( ontology:system ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:agricultural_business_and_management property:part_of ?x . { { ?x rdf:type ontology:academic_discipline } UNION { ?x rdf:type ontology:system } } } } . FILTER ( ?o < ?i ) }
[]
academic discipline system special field
SYSTEM
110
Q17002728 Q539690 Q2964004 Q203337 Q21572183 Q128406 Q932510 Q1507246 Q60195 Q745328 Q180502 Q488059 Q1407263 Q15304508 Q103824 Q235007 Q4117183 Q7218 Q327657 Q81009 Q7234391 Q598976 Q7754 Q177635 Q2027981 Q27133094 Q739465 Q182468 Q338379 Q861689 Q4785472 Q7922 Q2116549 Q1335366 Q1278791 Q213891 Q134435 Q120569 Q11351 Q4260703 Q80015 Q775325 Q47417 Q14177941 Q1569011 Q642836 Q428691 Q2442870 Q34178 Q10379 Q6497044 Q21928196 Q743664 Q4917288 Q459381 Q1207969 Q1000058 Q1650750 Q80006 Q1066186 Q80083 Q501778 Q1049976 Q102904 Q145903 Q220821 Q1456948 Q898674 Q22811234 Q899279 Q1662333 Q9053037 Q121713 Q188449 Q1430816 Q131089 Q460162 Q162606 Q52120 Q454812 Q2108944 Q35395 Q613566 Q126552 Q760348 Q3448005 Q2713123 Q1498222 Q1916458 Q207011 Q1046686 Q1774688 Q2728012 Q286452 Q1601482 Q164204 Q489119 Q504033 Q1328949 Q39645 Q141495 Q16683089 Q15218776 Q1741745 Q1514678 Q12016129 Q52106 Q333024 Q1741922 Q200253
(c(Q1047113),P361,c(Q11862829)|c(Q58778))
action count
action less
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q58778
action count
action filter_multi_types
action find
entity Q21614234
relation P361
type Q11862829
type Q58778
[ANSWER]
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q58778'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?w WHERE { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:Q11862829 ) ( ontology:Q58778 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q21614234 property:P361 ?x . { { ?x rdf:type ontology:Q11862829 } UNION { ?x rdf:type ontology:Q58778 } } } } . FILTER ( ?o < ?i ) }
branch of botany angiology thoracic surgery pulmonology modeling, virtual environments and simulation pharmacology general surgery media education semiotics mathematical statistics parasitology philosophical anthropology forensic psychiatry pathogen transmission ontology hematology cardiac surgery Open Biomedical Ontologies toxicology rheumatology rhetoric Postmodernist anthropology medical microbiology mathematical analysis nephrology oral surgery vaccine development study of the Hebrew language hydrography trauma surgery Education economics archaeological sub-discipline pedagogy science of journalism neuroendocrinology anarchist schools of thought geochronology topography gastroenterology organic chemistry railway engineering Obstetrics gynecology transport engineering international economics State/County Subdivision Outline Maps Urban history Neuroradiology computer engineering lepidopterology theology cardiology history of literature legal medicine Abdominal surgery control engineering literary theory diabetology psychoneuroendocrinology neuropathology computer programming science of history humanities translation studies transplantology volcanology egyptology visual sociology geobotany neonatology branch of philosophy Controlling infection epidemiology spatial planning acupuncture neurosurgery pediatric surgery geodesy museology endocrinology glaciology forensic medicine press statistics phonetics software configuration management business informatics eye surgery radical centrism phlebology vascular surgery media economy neuroscience allergology clinical pharmacology neurobiology Hand surgery anthropology of Religion musicology Hellenic studies oral and maxillofacial surgery neuropediatrics semantics mathematical optimization endocrine oncology orthopedic surgery Child and adolescent psychiatry gerontopsychiatry hydrodynamics biogeography pluralism pediatric urology traditional Chinese medicine
110
action count
action less
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type system
action count
action filter_multi_types
action find
entity agricultural business and management
relation part of
type academic discipline
type system
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'system'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) ?w WHERE { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:academic_discipline ) ( ontology:system ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:agricultural_business_and_management property:part_of ?x . { { ?x rdf:type ontology:academic_discipline } UNION { ?x rdf:type ontology:system } } } } . FILTER ( ?o < ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q48803
P361
Q11862829 Q58778 Q1047113
USER
And what about horticulture?
(c(Q1047113),P361,c(Q11862829)|c(Q58778))
action count
action less
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q58778
action count
action filter_multi_types
action find
entity Q48803
relation P361
type Q11862829
type Q58778
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q58778'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?m WHERE { VALUES ( ?b ) { ( ontology:Q11862829 ) ( ontology:Q58778 ) } . ?q rdf:type ?b } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q48803 property:P361 ?k . { { ?k rdf:type ontology:Q11862829 } UNION { ?k rdf:type ontology:Q58778 } } } } . FILTER ( ?j < ?d ) }
horticulture
action count
action less
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type system
action count
action filter_multi_types
action find
entity horticulture
relation part of
type academic discipline
type system
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'system'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?m WHERE { VALUES ( ?b ) { ( ontology:academic_discipline ) ( ontology:system ) } . ?q rdf:type ?b } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:horticulture property:part_of ?k . { { ?k rdf:type ontology:academic_discipline } UNION { ?k rdf:type ontology:system } } } } . FILTER ( ?j < ?d ) }
[]
academic discipline system special field
SYSTEM
110
Q17002728 Q539690 Q2964004 Q203337 Q21572183 Q128406 Q932510 Q1507246 Q60195 Q745328 Q180502 Q488059 Q1407263 Q15304508 Q103824 Q235007 Q4117183 Q7218 Q327657 Q81009 Q7234391 Q598976 Q7754 Q177635 Q2027981 Q27133094 Q739465 Q182468 Q338379 Q861689 Q4785472 Q7922 Q2116549 Q1335366 Q1278791 Q213891 Q134435 Q120569 Q11351 Q4260703 Q80015 Q775325 Q47417 Q14177941 Q1569011 Q642836 Q428691 Q2442870 Q34178 Q10379 Q6497044 Q21928196 Q743664 Q4917288 Q459381 Q1207969 Q1000058 Q1650750 Q80006 Q1066186 Q80083 Q501778 Q1049976 Q102904 Q145903 Q220821 Q1456948 Q898674 Q22811234 Q899279 Q1662333 Q9053037 Q121713 Q188449 Q1430816 Q131089 Q460162 Q162606 Q52120 Q454812 Q2108944 Q35395 Q613566 Q126552 Q760348 Q3448005 Q2713123 Q1498222 Q1916458 Q207011 Q1046686 Q1774688 Q2728012 Q286452 Q1601482 Q164204 Q489119 Q504033 Q1328949 Q39645 Q141495 Q16683089 Q15218776 Q1741745 Q1514678 Q12016129 Q52106 Q333024 Q1741922 Q200253
(c(Q1047113),P361,c(Q11862829)|c(Q58778))
action count
action less
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q58778
action count
action filter_multi_types
action find
entity Q48803
relation P361
type Q11862829
type Q58778
[ANSWER]
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q58778'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?m WHERE { VALUES ( ?b ) { ( ontology:Q11862829 ) ( ontology:Q58778 ) } . ?q rdf:type ?b } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:Q48803 property:P361 ?k . { { ?k rdf:type ontology:Q11862829 } UNION { ?k rdf:type ontology:Q58778 } } } } . FILTER ( ?j < ?d ) }
branch of botany angiology thoracic surgery pulmonology modeling, virtual environments and simulation pharmacology general surgery media education semiotics mathematical statistics parasitology philosophical anthropology forensic psychiatry pathogen transmission ontology hematology cardiac surgery Open Biomedical Ontologies toxicology rheumatology rhetoric Postmodernist anthropology medical microbiology mathematical analysis nephrology oral surgery vaccine development study of the Hebrew language hydrography trauma surgery Education economics archaeological sub-discipline pedagogy science of journalism neuroendocrinology anarchist schools of thought geochronology topography gastroenterology organic chemistry railway engineering Obstetrics gynecology transport engineering international economics State/County Subdivision Outline Maps Urban history Neuroradiology computer engineering lepidopterology theology cardiology history of literature legal medicine Abdominal surgery control engineering literary theory diabetology psychoneuroendocrinology neuropathology computer programming science of history humanities translation studies transplantology volcanology egyptology visual sociology geobotany neonatology branch of philosophy Controlling infection epidemiology spatial planning acupuncture neurosurgery pediatric surgery geodesy museology endocrinology glaciology forensic medicine press statistics phonetics software configuration management business informatics eye surgery radical centrism phlebology vascular surgery media economy neuroscience allergology clinical pharmacology neurobiology Hand surgery anthropology of Religion musicology Hellenic studies oral and maxillofacial surgery neuropediatrics semantics mathematical optimization endocrine oncology orthopedic surgery Child and adolescent psychiatry gerontopsychiatry hydrodynamics biogeography pluralism pediatric urology traditional Chinese medicine
110
action count
action less
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type system
action count
action filter_multi_types
action find
entity horticulture
relation part of
type academic discipline
type system
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'system'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?m WHERE { VALUES ( ?b ) { ( ontology:academic_discipline ) ( ontology:system ) } . ?q rdf:type ?b } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { resource:horticulture property:part_of ?k . { { ?k rdf:type ontology:academic_discipline } UNION { ?k rdf:type ontology:system } } } } . FILTER ( ?j < ?d ) }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1146124
Q502895
USER
And what about Rabi'ah ibn al-Harith?
(Q1146124,P361,c(Q502895))
action filter_type
action find
entity Q1146124
relation P361
type Q502895
['Q1146124', 'P361', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1146124 property:P361 ?a . ?a rdf:type ontology:Q502895 }
Rabi'ah ibn al-Harith
action filter_type
action find
entity Rabi'ah ibn al-Harith
relation part of
type common name
["Rabi'ah ibn al-Harith", 'part of', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Rabi'ah_ibn_al-Harith property:part_of ?a . ?a rdf:type ontology:common_name }
[]
common name
Q188711
SYSTEM
Sahabah
Q188711
(Q1146124,P361,c(Q502895))
action filter_type
action find
entity Q1146124
relation P361
type Q502895
[ANSWER]
['Q1146124', 'P361', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q1146124 property:P361 ?a . ?a rdf:type ontology:Q502895 }
Sahabah
Sahabah
action filter_type
action find
entity Rabi'ah ibn al-Harith
relation part of
type common name
["Rabi'ah ibn al-Harith", 'part of', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Rabi'ah_ibn_al-Harith property:part_of ?a . ?a rdf:type ontology:common_name }
[]