Simple Question (Direct)
Simple Question
Q23605104
P703
Q16521
USER
Where is threonyl/alanyl tRNA synthetase SAD    Smed_1364 found ?
(Q23605104,P703,c(Q16521))
action filter_type
action find
entity Q23605104
relation P703
type Q16521
['Q23605104', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?x WHERE { resource:Q23605104 property:P703 ?x . ?x rdf:type ontology:Q16521 }
threonyl/alanyl tRNA synthetase SAD    Smed_1364
action filter_type
action find
entity threonyl/alanyl tRNA synthetase SAD    Smed_1364
relation found in taxon
type taxon
['threonyl/alanyl tRNA synthetase SAD    Smed_1364', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?x WHERE { resource:threonyl/alanyl_tRNA_synthetase_SAD____Smed_1364 property:found_in_taxon ?x . ?x rdf:type ontology:taxon }
[]
taxon
Q21398749
SYSTEM
Sinorhizobium medicae WSM419
Q21398749
(Q23605104,P703,c(Q16521))
action filter_type
action find
entity Q23605104
relation P703
type Q16521
Threonyl / alanyl tRNA synthetase SAD Smed_1364 is found in [ANSWER]
['Q23605104', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?x WHERE { resource:Q23605104 property:P703 ?x . ?x rdf:type ontology:Q16521 }
Sinorhizobium medicae WSM419
Threonyl / alanyl tRNA synthetase SAD Smed_1364 is found in Sinorhizobium medicae WSM419
Sinorhizobium medicae WSM419
action filter_type
action find
entity threonyl/alanyl tRNA synthetase SAD    Smed_1364
relation found in taxon
type taxon
['threonyl/alanyl tRNA synthetase SAD    Smed_1364', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?x WHERE { resource:threonyl/alanyl_tRNA_synthetase_SAD____Smed_1364 property:found_in_taxon ?x . ?x rdf:type ontology:taxon }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21436562
Q16521
USER
And what about NEDD4 family-interacting protein 2?
(Q21436562,P703,c(Q16521))
action filter_type
action find
entity Q21436562
relation P703
type Q16521
['Q21436562', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?m WHERE { resource:Q21436562 property:P703 ?m . ?m rdf:type ontology:Q16521 }
NEDD4 family-interacting protein 2
action filter_type
action find
entity NEDD4 family-interacting protein 2
relation found in taxon
type taxon
['NEDD4 family-interacting protein 2', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?m WHERE { resource:NEDD4_family-interacting_protein_2 property:found_in_taxon ?m . ?m rdf:type ontology:taxon }
[]
taxon
Q83310
SYSTEM
Mus musculus
Q83310
(Q21436562,P703,c(Q16521))
action filter_type
action find
entity Q21436562
relation P703
type Q16521
[ANSWER]
['Q21436562', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?m WHERE { resource:Q21436562 property:P703 ?m . ?m rdf:type ontology:Q16521 }
Mus musculus
Mus musculus
action filter_type
action find
entity NEDD4 family-interacting protein 2
relation found in taxon
type taxon
['NEDD4 family-interacting protein 2', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?m WHERE { resource:NEDD4_family-interacting_protein_2 property:found_in_taxon ?m . ?m rdf:type ontology:taxon }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P703
Q16889133 Q20011319
USER
How many classes or parts of a plant are a part of the taxon that taxon ?
(c(Q16889133),P703,Q83310) (c(Q20011319),P703,Q83310) (c(Q16889133),P703,Q83310) (c(Q20011319),P703,Q83310)
action count
action union
action filter_type
action find_reverse
entity Q83310
relation P703
type Q16889133
action filter_type
action find_reverse
entity Q83310
relation P703
type Q20011319
[{'concept': 'Q16889133'}, 'P703', 'Q83310'] [{'concept': 'Q20011319'}, 'P703', 'Q83310'] [{'concept': 'Q16889133'}, 'P703', 'Q83310'] [{'concept': 'Q20011319'}, 'P703', 'Q83310']
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q16889133 ) ( ontology:Q20011319 ) } }
action count
action union
action filter_type
action find_reverse
entity Mus musculus
relation found in taxon
type class
action filter_type
action find_reverse
entity Mus musculus
relation found in taxon
type part of a plant
[{'concept': 'class'}, 'found in taxon', 'Mus musculus'] [{'concept': 'part of a plant'}, 'found in taxon', 'Mus musculus'] [{'concept': 'class'}, 'found in taxon', 'Mus musculus'] [{'concept': 'part of a plant'}, 'found in taxon', 'Mus musculus']
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:class ) ( ontology:part_of_a_plant ) } }
[]
class part of a plant
SYSTEM
2
Q18694508 Q5403034
(c(Q16889133),P703,Q83310) (c(Q20011319),P703,Q83310) (c(Q16889133),P703,Q83310) (c(Q20011319),P703,Q83310)
action count
action union
action filter_type
action find_reverse
entity Q83310
relation P703
type Q16889133
action filter_type
action find_reverse
entity Q83310
relation P703
type Q20011319
[ANSWER]
[{'concept': 'Q16889133'}, 'P703', 'Q83310'] [{'concept': 'Q20011319'}, 'P703', 'Q83310'] [{'concept': 'Q16889133'}, 'P703', 'Q83310'] [{'concept': 'Q20011319'}, 'P703', 'Q83310']
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:Q16889133 ) ( ontology:Q20011319 ) } }
mouse mitochondrion Ethanolamine-phosphate phospho-lyase
2
action count
action union
action filter_type
action find_reverse
entity Mus musculus
relation found in taxon
type class
action filter_type
action find_reverse
entity Mus musculus
relation found in taxon
type part of a plant
[{'concept': 'class'}, 'found in taxon', 'Mus musculus'] [{'concept': 'part of a plant'}, 'found in taxon', 'Mus musculus'] [{'concept': 'class'}, 'found in taxon', 'Mus musculus'] [{'concept': 'part of a plant'}, 'found in taxon', 'Mus musculus']
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { ?p rdf:type ?h . VALUES ( ?h ) { ( ontology:class ) ( ontology:part_of_a_plant ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q16521 Q3305213 Q15709879
USER
Which taxons are expressed in min number of paintings or artwork series ?
(c(Q3305213)|c(Q15709879),P180,c(Q16521))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q16521
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q16521
type Q15709879
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q16521'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?o WHERE { VALUES ( ?k ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?q rdf:type ?k } GROUP BY ?o } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?t WHERE { VALUES ( ?x ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?i rdf:type ?x } GROUP BY ?t } } }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type taxon
type painting
action find_reverse_tuple_counts
relation depicts
type taxon
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'taxon'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?o WHERE { VALUES ( ?k ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?q rdf:type ?k } GROUP BY ?o } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?t WHERE { VALUES ( ?x ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?i rdf:type ?x } GROUP BY ?t } } }
[]
taxon painting artwork series
Q28425 Q14560 Q25308
SYSTEM
Chiroptera, Cactaceae, Orchidaceae
Q156895 Q74363 Q161185 Q25292 Q312736 Q10872 Q36341 Q780 Q40802 Q19125 Q131113 Q193833 Q12648 Q59882 Q41050 Q756901 Q2751223 Q12861234 Q28298 Q5239844 Q93201 Q25365 Q143284 Q244377 Q15879 Q9147 Q132734 Q3281198 Q132826 Q25402 Q25403 Q25404 Q131340 Q158699 Q157619 Q129018 Q19413 Q206998 Q159370 Q202955 Q7372 Q27725 Q122679 Q213336 Q136874 Q473194 Q128685 Q161068 Q36715 Q745 Q161066 Q26106 Q14560 Q168976 Q147325 Q158271 Q335113 Q21659 Q33609 Q14469221 Q180404 Q28319 Q23485 Q4712487 Q223930 Q333166 Q61865 Q652016 Q101711 Q1324463 Q3916957 Q242851 Q7215110 Q189193 Q182976 Q81513 Q28367 Q4979192 Q81666 Q6401215 Q379761 Q158657 Q25312 Q25314 Q205106 Q782073 Q158863 Q30046 Q25709 Q12117 Q80117 Q163025 Q27164 Q45669 Q1902297 Q15735642 Q147295 Q188212 Q262307 Q6408 Q135022 Q82562 Q43084 Q83310 Q4036311 Q37383 Q14326 Q178973 Q171360 Q132922 Q145777 Q855800 Q200184 Q158091 Q18498 Q62181 Q25357 Q212398 Q157449 Q2162397 Q147520 Q147678 Q1000370 Q25761 Q36146 Q80066 Q958823 Q312054 Q158617 Q25485 Q46360 Q475629 Q188949 Q572447 Q948739 Q43300 Q35922 Q2373541 Q160835 Q134486 Q3384 Q216944 Q215420 Q3614370 Q157624 Q5214900 Q25418 Q157180 Q25222 Q122069 Q130918 Q159537 Q101538 Q157211 Q3355098 Q43169 Q28425 Q478530 Q149312 Q156207 Q83902 Q477179 Q192190 Q109995 Q26114 Q39275 Q3171877 Q830854 Q127134 Q2724806 Q1257150 Q125337 Q44789 Q35694 Q7391 Q131880 Q172923 Q245181 Q26209 Q81110 Q201701 Q27682 Q39918 Q157552 Q159811 Q155878 Q156921 Q48428 Q2396858 Q7224565 Q1642639 Q25900 Q165437 Q40152 Q179863 Q13180 Q25265 Q104819 Q13189 Q177856 Q34505 Q133006 Q55805 Q25308 Q22671 Q1390 Q82014 Q157952 Q7216874 Q131044 Q24192472 Q149851 Q47722 Q128550 Q5986917 Q43794 Q1267453 Q11788 Q26764 Q39861 Q1426766 Q25767 Q5194627 Q1452250 Q37686 Q160107 Q79915 Q1493 Q471914 Q10856 Q434 Q165206 Q10850 Q18099 Q156606 Q130201 Q157511 Q146684 Q155833 Q29465 Q146095 Q388162 Q2821956 Q2360058 Q146391 Q645804 Q111346 Q997482 Q25497 Q1135526 Q500 Q104212 Q25243 Q188879 Q29858 Q158286 Q25341 Q25347 Q25345 Q37453 Q102857 Q1038113 Q27961 Q189014 Q38584 Q1357 Q47542 Q3237652 Q80005 Q164013 Q157739 Q25332 Q25239 Q871991 Q311468 Q30024 Q3127419 Q4115567 Q232129 Q2934 Q27742 Q2984138 Q855133 Q79794 Q82728 Q25348 Q178559 Q6565319 Q23390 Q10811 Q117085 Q291670 Q201959 Q156307 Q500383 Q150064 Q165152 Q7386 Q187943 Q217497 Q517130 Q1443415 Q242602 Q25386 Q25383 Q25382 Q25380 Q339803 Q2576337 Q25388 Q27690 Q31431 Q14080 Q4179040 Q843173 Q157017 Q2565286 Q2796766 Q44120 Q146269 Q156935 Q34384 Q164686 Q132557 Q25273 Q147 Q39624 Q201231 Q201235 Q27589 Q161939 Q26913 Q190903 Q25375 Q30263 Q775470 Q158974 Q917187 Q124969 Q171004 Q81602 Q1249634 Q223044 Q129324 Q187852 Q228283 Q21188 Q208600 Q335992 Q2216236 Q207427 Q149335 Q12004 Q191674 Q220925 Q30063 Q147149 Q15083 Q40994 Q179333 Q157503 Q3377275 Q7901176 Q26135 Q158808 Q13099586 Q146149 Q36396 Q147316 Q128887 Q4764 Q23907 Q6495741 Q147641 Q191019 Q127849 Q11575 Q26006 Q43365 Q25334 Q156901 Q170831 Q146130 Q156047 Q15370610 Q1245878 Q158703 Q53636 Q1049642 Q35517 Q4968112 Q749577 Q37083 Q26354 Q14683 Q3645698 Q25324 Q189466 Q130933 Q854884 Q25329 Q25247 Q157806 Q43624 Q3170508 Q183361 Q159420 Q147105 Q34706 Q581590 Q18845 Q18847 Q25353 Q42196 Q209239 Q1401371 Q79803 Q35051 Q158795 Q61105 Q43489 Q25851 Q146186 Q27618 Q156099 Q146604 Q13541716 Q55808 Q14334 Q7540 Q26626 Q58697 Q158082 Q907937 Q8327
(c(Q3305213)|c(Q15709879),P180,c(Q16521))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q16521
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q16521
type Q15709879
[ANSWERS] are expressed in min number of paintings or artwork series
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q16521'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?o WHERE { VALUES ( ?k ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?q rdf:type ?k } GROUP BY ?o } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?t WHERE { VALUES ( ?x ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?i rdf:type ?x } GROUP BY ?t } } }
Betula pendula Hippocampus Passiflora Phoenix dactylifera Pandanus tectorius Archaea brown bear chicken Brachyura scorpion Ulmus ibis domestic short-haired cat Chrysanthemum orangutan pocket gopher Carp Viola × wittrockiana Apium graveolens Gloxinia Tulipa Crane Black Woodpecker Egyptian cobra lizard Spheniscidae buckwheat Acer sino-oblongum Sabal Cygnus olor Fagus Eurasian Blue Tit chamois european Peacock red dead-nettle Prunus spinosa Pelecanus Erica Erysimum cheiri oriole shark Anatinae rosemary Hippopotamidae Lilium philadelphicum ox Anguilliformes Nasturtium mammoth Fragaria Fuchsia Grey Partridge Cactaceae Eastern Imperial Eagle Malva nasturtium Golden Pheasant Galliformes polar bear Terebra subulata elk Lepidoptera Allium cepa Albion game Sarus Crane Indian Peafowl Phlox Convallaria majalis Nautilus turnip Muscovy duck Secale Great Auk common roach Citrus Asparagus officinalis Bovinae Acacia Prunus subg. Prunus Black-crowned crane Malus pumila Diptera angiosperms Zinnia Melaleuca alternifolia Lychnis Vitis vinifera Eurasian Bittern cereal Caridea Platanus Leucanthemum vulgare Eucalyptus Conus marmoreus Mussel Cyclamen Galeocerdo cuvier crested porcupine Ranidae Camelidae Anserini Piper nigrum Mus musculus Clithon Arachis hypogaea Apatosaurus Mustela putorius furo Eurasian Spoonbill Bactrian camel Convolvulaceae Erithacus Lutrinae Acanthus gray wolf Salamandra Common Raven Monarch butterfly Syringa Trientalis borealis Typha latifolia Trona stercoraria Pinales Common Shelduck Ficus carica dragonfly Angelica sylvestris Irish Elk Begonia Great Tit tortoise Trillium Woolly rhinoceros aspic viper Cassis cornuta Cydonia oblonga bamboo Flamingo tongue snail Fringillidae Lilium auratum Brassica rapa Juglandaceae stickleback Amitabha urbsinterdictensis Betula pubescens Danaideae European Goldfinch Alchemilla owl roe deer Dahlia Primula vulgaris Trifolium Geranium Citrus ×sinensis crocodylid Chiroptera Rosa alba Calystegia Gladiolus grasshopper cantaloupe holly Galanthus nivalis Eurasian Woodcock mouse Cittarium pica steppe wisent Aloe Wigeon Murex tribulus Citrus reticulata Morus jaguar bee Philodendron Capra turkey vulture Great Spotted Woodpecker Cyprinus carpio pufferfish Alcea rosea Prunus dulcis cowslip Lilium candidum Black Grouse Centaurea cyanus bird of prey Clupea harengus radish chick Leporidae beet Octopoda Greater flamingo Rubus subg. Rubus Felidae Malus Prunus persica Griffon Vulture hippopotamus Asian elephant albatross Orchidaceae Coleoptera insects Jasminum Dracaena draco Veronica Cygnus atratus Potentilla glaucophylla Sequoiadendron giganteum broccoli Cedrus Azalea Meleagris Hooded Visorbearer bear Pieris brassicae Hirundinidae Leymus arenarius yellow-tail Lilium Geococcyx chameleon Delphinium Common kingfisher Ananas comosus Pandanus pigeon Pyrus Erysimum Rodentia bison Rhesus macaque Papaver rhoeas Leucojum Fragaria vesca Nerium oleander Narcissus Viola Siphonaptera Abronia fragrans Cineraria Papaver Morpho Convolvulus arvensis Bubbles Bovidae common dab Citrus ×limon common hop Betula Atlantic salmon lark anemone Passeriformes moss stoat Prunus armeniaca honey bee Nephropidae Matthiola European chub dingo spider Castor Dianthus ferns Hyacinthoides non-scripta Platanus occidentalis Western Osprey alder Cherry blossom Barringtonia asiatica Taraxacum Herring Lupinus texensis American badger goat Equus ferus pigeon bittern red deer American bison Mallard poultry Syringa vulgaris deer reptile Ilex Clintonia borealis Capsicum Salix babylonica Spondias dulcis Citrus medica Myrtus Formicidae Pronghorn African fish eagle aster Haustellum haustellum Oreamnos americanus Rook Common Chaffinch Eurasian Bullfinch Sparrowhawk Gossypium sturtianum Struthio Eurasian Golden Oriole Homarus gammarus parrot Arecaceae Iron Wolf Pyrrhula Magnolia California golden bear Salmon Prunus domestica Populus alba Hypericum Cygnus Plantago Crataegus Grey Heron kitten reindeer cassowary Electrophorus electricus Laridae Fritillaria imperialis harbor seal herbaceous plant Odonata pinniped Cleyera japonica Primula Chamaecyparis obtusa Corylus avellana grizzly bear Cucumis melo Pecten maximus Testudines castanea red-breasted goose Felis Laurus Sardina pilchardus grey-crowned crane rooster Nelumbo Sequoioideae Quercus pike Vinca Matthiola incana Myosotis Northern giraffe walrus bird-of-paradise Fritillaria Green pea Ursinae Bohemian Waxwing Cyperus papyrus pear Fagus sylvatica rat Ananas Fraxinus common crane cheetah Batoidea Aquilegia Vitis Tilia maize Laurus nobilis Corvus European Robin Iris Long-tailed Tit Ranunculus Lonicera Consolida samia Gardenia taitensis box Anura Indigo Bunting Alces alces Brimeura duvigneaudii Paradisaea raggiana Olea europaea Hedera helix House Sparrow Lotus Canidae Bighorn sheep Eurasian Eagle-Owl Pinus thunbergii Artiodactyla Upupa epops crocus Trochilidae Nerita Anser Petunia × hybrida Paeonia leopard Fork-tailed Woodnymph Common Cuckoo Common moorhen Northern Goshawk Blue whale Columba swallow Cavia porcellus cabbage Eschscholzia californica Cedrus libani falcon European rabbit Medlar Matricaria Dianthus Ribes nigrum Rubus fruticosus seabird wolverine eggplant Scolopacidae wild boar heliotrope Iris sanguinea Psittacidae
Chiroptera, Cactaceae and Orchidaceae are expressed in min number of paintings or artwork series
Chiroptera Cactaceae Orchidaceae
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type taxon
type painting
action find_reverse_tuple_counts
relation depicts
type taxon
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'taxon'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) ?o WHERE { VALUES ( ?k ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?q rdf:type ?k } GROUP BY ?o } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( MIN ( ?m ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?t WHERE { VALUES ( ?x ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?i rdf:type ?x } GROUP BY ?t } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P180
Q16521 Q11060274
USER
Which prints demonstrate max number of taxons ?
(c(Q11060274),P180,c(Q16521))
action argmax
action find_tuple_counts
relation P180
type Q11060274
type Q16521
[{'concept': 'Q11060274'}, 'P180', {'concept': 'Q16521'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?w ) { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?v ) WHERE { ?p property:P180 ?n . ?p rdf:type ontology:Q11060274 . ?n rdf:type ontology:Q16521 } GROUP BY ?p } } . FILTER ( ?g = ?w ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?g ) WHERE { ?y property:P180 ?f . ?f rdf:type ontology:Q16521 . ?y rdf:type ontology:Q11060274 } GROUP BY ?y } }
action argmax
action find_tuple_counts
relation depicts
type print
type taxon
[{'concept': 'print'}, 'depicts', {'concept': 'taxon'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?w ) { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?v ) WHERE { ?p property:depicts ?n . ?p rdf:type ontology:print . ?n rdf:type ontology:taxon } GROUP BY ?p } } . FILTER ( ?g = ?w ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?g ) WHERE { ?y property:depicts ?f . ?f rdf:type ontology:taxon . ?y rdf:type ontology:print } GROUP BY ?y } }
[]
taxon print
Q3898508 Q2717022 Q18822989
SYSTEM
Adam and Eve, The Dream of the Fisherman's Wife, Behind L'Élan by Fremiet (Trocadéro)
Q20968202 Q7547192 Q18822983 Q2717022 Q1219903 Q22661827 Q23681804 Q20667113 Q3898508 Q7314351 Q20667109 Q18822848 Q18822989
(c(Q11060274),P180,c(Q16521))
action argmax
action find_tuple_counts
relation P180
type Q11060274
type Q16521
[ANSWERS] demonstrate max number of taxons
[{'concept': 'Q11060274'}, 'P180', {'concept': 'Q16521'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?w ) { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?v ) WHERE { ?p property:P180 ?n . ?p rdf:type ontology:Q11060274 . ?n rdf:type ontology:Q16521 } GROUP BY ?p } } . FILTER ( ?g = ?w ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?g ) WHERE { ?y property:P180 ?f . ?f rdf:type ontology:Q16521 . ?y rdf:type ontology:Q11060274 } GROUP BY ?y } }
Two dogs by a lakeside Snakes On the Roofs The Dream of the Fisherman's Wife The Deformed Landser Sow Return from the Fields The Dance of Albion Untitled Adam and Eve Reptiles The Olive Trees of the Riviera Frontispiece Behind L'Élan by Fremiet (Trocadéro)
Adam and Eve, The Dream of the Fisherman's Wife and Behind L'Élan by Fremiet (Trocadéro) demonstrate max number of taxons
Adam and Eve The Dream of the Fisherman's Wife Behind L'Élan by Fremiet (Trocadéro)
action argmax
action find_tuple_counts
relation depicts
type print
type taxon
[{'concept': 'print'}, 'depicts', {'concept': 'taxon'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?w ) { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?v ) WHERE { ?p property:depicts ?n . ?p rdf:type ontology:print . ?n rdf:type ontology:taxon } GROUP BY ?p } } . FILTER ( ?g = ?w ) . { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?g ) WHERE { ?y property:depicts ?f . ?f rdf:type ontology:taxon . ?y rdf:type ontology:print } GROUP BY ?y } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2717022
P800
Q502895
USER
Which person is accredited with being the author of the notable work that print ?
(c(Q502895),P800,Q2717022)
action filter_type
action find_reverse
entity Q2717022
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q2717022']
SELECT DISTINCT ?l WHERE { ?l property:P800 resource:Q2717022 . ?l rdf:type ontology:Q502895 }
The Dream of the Fisherman's Wife
action filter_type
action find_reverse
entity The Dream of the Fisherman's Wife
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', "The Dream of the Fisherman's Wife"]
SELECT DISTINCT ?l WHERE { ?l property:notable_work resource:The_Dream_of_the_Fisherman's_Wife . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q2717022
SYSTEM
Did you mean The Dream of the Fisherman's Wife ?
Q3898508 Q2717022 Q18822989
(c(Q502895),P800,Q3898508) (c(Q502895),P800,Q2717022) (c(Q502895),P800,Q18822989)
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q3898508'] [{'concept': 'Q502895'}, 'P800', 'Q2717022'] [{'concept': 'Q502895'}, 'P800', 'Q18822989']
SELECT DISTINCT ?l WHERE { ?l property:P800 resource:Q2717022 . ?l rdf:type ontology:Q502895 }
Adam and Eve The Dream of the Fisherman's Wife Behind L'Élan by Fremiet (Trocadéro)
Did you mean The Dream of the Fisherman's Wife ?
The Dream of the Fisherman's Wife
[{'concept': 'common name'}, 'notable work', 'Adam and Eve'] [{'concept': 'common name'}, 'notable work', "The Dream of the Fisherman's Wife"] [{'concept': 'common name'}, 'notable work', "Behind L'Élan by Fremiet (Trocadéro)"]
SELECT DISTINCT ?l WHERE { ?l property:notable_work resource:The_Dream_of_the_Fisherman's_Wife . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P800,Q2717022)
[{'concept': 'Q502895'}, 'P800', 'Q2717022']
[{'concept': 'common name'}, 'notable work', "The Dream of the Fisherman's Wife"]
[]
Q5586
SYSTEM
Katsushika Hokusai
Q5586
(c(Q502895),P800,Q2717022)
action filter_type
action find_reverse
entity Q2717022
relation P800
type Q502895
[ANSWER] is accredited with being the author of the notable work that print
[{'concept': 'Q502895'}, 'P800', 'Q2717022']
SELECT DISTINCT ?l WHERE { ?l property:P800 resource:Q2717022 . ?l rdf:type ontology:Q502895 }
Katsushika Hokusai
Katsushika Hokusai is accredited with being the author of the notable work that print
Katsushika Hokusai
action filter_type
action find_reverse
entity The Dream of the Fisherman's Wife
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', "The Dream of the Fisherman's Wife"]
SELECT DISTINCT ?l WHERE { ?l property:notable_work resource:The_Dream_of_the_Fisherman's_Wife . ?l rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q5586 Q2717022
P170
Q11060274
USER
Does The Dream of the Fisherman's Wife work were created by that person ?
(Q2717022,P170,Q5586)
action is_in
entity Q5586
action find
entity Q2717022
relation P170
['Q2717022', 'P170', 'Q5586']
ASK WHERE { resource:Q2717022 property:P170 resource:Q5586 }
Katsushika Hokusai The Dream of the Fisherman's Wife
action is_in
entity Katsushika Hokusai
action find
entity The Dream of the Fisherman's Wife
relation creator
["The Dream of the Fisherman's Wife", 'creator', 'Katsushika Hokusai']
ASK WHERE { resource:The_Dream_of_the_Fisherman's_Wife property:creator resource:Katsushika_Hokusai }
[]
print
SYSTEM
YES
(Q2717022,P170,Q5586)
action is_in
entity Q5586
action find
entity Q2717022
relation P170
[ANSWER]
['Q2717022', 'P170', 'Q5586']
ASK WHERE { resource:Q2717022 property:P170 resource:Q5586 }
Yes
action is_in
entity Katsushika Hokusai
action find
entity The Dream of the Fisherman's Wife
relation creator
["The Dream of the Fisherman's Wife", 'creator', 'Katsushika Hokusai']
ASK WHERE { resource:The_Dream_of_the_Fisherman's_Wife property:creator resource:Katsushika_Hokusai }
[]