Simple Question (Direct)
Simple Question
Q1960770
P136
Q1792379
USER
What can be considered as category for Oh! That Wife of Mine ?
(Q1960770,P136,c(Q1792379))
action filter_type
action find
entity Q1960770
relation P136
type Q1792379
['Q1960770', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?e WHERE { resource:Q1960770 property:P136 ?e . ?e rdf:type ontology:Q1792379 }
Oh! That Wife of Mine
action filter_type
action find
entity Oh! That Wife of Mine
relation genre
type art genre
['Oh! That Wife of Mine', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?e WHERE { resource:Oh!_That_Wife_of_Mine property:genre ?e . ?e rdf:type ontology:art_genre }
[]
art genre
Q157443
SYSTEM
comedy film
Q157443
(Q1960770,P136,c(Q1792379))
action filter_type
action find
entity Q1960770
relation P136
type Q1792379
A [ANSWER] can be considered as category for Oh! That Wife of Mine
['Q1960770', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?e WHERE { resource:Q1960770 property:P136 ?e . ?e rdf:type ontology:Q1792379 }
comedy film
A comedy film can be considered as category for Oh! That Wife of Mine
comedy film
action filter_type
action find
entity Oh! That Wife of Mine
relation genre
type art genre
['Oh! That Wife of Mine', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?e WHERE { resource:Oh!_That_Wife_of_Mine property:genre ?e . ?e rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1960770
P161
Q502895
USER
Who starred in Oh! That Wife of Mine ?
(Q1960770,P161,c(Q502895))
action filter_type
action find
entity Q1960770
relation P161
type Q502895
['Q1960770', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q1960770 property:P161 ?w . ?w rdf:type ontology:Q502895 }
Oh! That Wife of Mine
action filter_type
action find
entity Oh! That Wife of Mine
relation cast member
type common name
['Oh! That Wife of Mine', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Oh!_That_Wife_of_Mine property:cast_member ?w . ?w rdf:type ontology:common_name }
[]
common name
Q451116 Q3028225 Q5558263
SYSTEM
Aliki Vougiouklaki, Dimitris Papamichael, Giannis Mihalopoulos
Q7420947 Q3028225 Q5558263 Q451116 Q12875594
(Q1960770,P161,c(Q502895))
action filter_type
action find
entity Q1960770
relation P161
type Q502895
[ANSWERS] starred in Oh! That Wife of Mine
['Q1960770', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q1960770 property:P161 ?w . ?w rdf:type ontology:Q502895 }
Sapfo Notara Dimitris Papamichael Giannis Mihalopoulos Aliki Vougiouklaki Despoina Stylianopoulou
Aliki Vougiouklaki, Dimitris Papamichael and Giannis Mihalopoulos starred in Oh! That Wife of Mine
Aliki Vougiouklaki Dimitris Papamichael Giannis Mihalopoulos
action filter_type
action find
entity Oh! That Wife of Mine
relation cast member
type common name
['Oh! That Wife of Mine', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Oh!_That_Wife_of_Mine property:cast_member ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5450360
Q502895
USER
And also tell me about Finishing School?
(Q5450360,P161,c(Q502895))
action filter_type
action find
entity Q5450360
relation P161
type Q502895
['Q5450360', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q5450360 property:P161 ?v }
Finishing School
action filter_type
action find
entity Finishing School
relation cast member
type common name
['Finishing School', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Finishing_School property:cast_member ?v }
[]
common name
Q95089 Q235639 Q373500
SYSTEM
Ginger Rogers, Billie Burke, Bruce Cabot
Q373500 Q265391 Q95089 Q235639
(Q5450360,P161,c(Q502895))
action filter_type
action find
entity Q5450360
relation P161
type Q502895
[ANSWERS]
['Q5450360', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q5450360 property:P161 ?v }
Bruce Cabot Frances Dee Ginger Rogers Billie Burke
Ginger Rogers Billie Burke Bruce Cabot
action filter_type
action find
entity Finishing School
relation cast member
type common name
['Finishing School', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Finishing_School property:cast_member ?v }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q28640 Q12737077
USER
How many professions and occupations do that person do for a living ?
(Q373500,P106,c(Q28640)) (Q373500,P106,c(Q12737077)) (Q95089,P106,c(Q28640)) (Q95089,P106,c(Q12737077)) (Q235639,P106,c(Q28640)) (Q235639,P106,c(Q12737077)) (Q373500,P106,c(Q28640)) (Q373500,P106,c(Q12737077))
['Q373500', 'P106', {'concept': 'Q28640'}] ['Q373500', 'P106', {'concept': 'Q12737077'}] ['Q95089', 'P106', {'concept': 'Q28640'}] ['Q95089', 'P106', {'concept': 'Q12737077'}] ['Q235639', 'P106', {'concept': 'Q28640'}] ['Q235639', 'P106', {'concept': 'Q12737077'}] ['Q373500', 'P106', {'concept': 'Q28640'}] ['Q373500', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q373500 property:Q528892 ?z } UNION { resource:Q373500 property:Q528892 ?y } UNION { resource:Q21167342 property:Q528892 ?z } UNION { resource:Q21167342 property:Q528892 ?y } UNION { resource:Q235639 property:Q528892 ?z } UNION { resource:Q235639 property:Q528892 ?y } UNION { resource:Q373500 property:Q528892 ?z } UNION { resource:Q373500 property:Q528892 ?y } } . ?z rdf:type ontology:Q28640 . ?y rdf:type ontology:Q528892 }
['Bruce Cabot', 'occupation', {'concept': 'profession'}] ['Bruce Cabot', 'occupation', {'concept': 'occupation'}] ['Ginger Rogers', 'occupation', {'concept': 'profession'}] ['Ginger Rogers', 'occupation', {'concept': 'occupation'}] ['Billie Burke', 'occupation', {'concept': 'profession'}] ['Billie Burke', 'occupation', {'concept': 'occupation'}] ['Bruce Cabot', 'occupation', {'concept': 'profession'}] ['Bruce Cabot', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Bruce_Cabot property:occupation ?z } UNION { resource:Bruce_Cabot property:occupation ?y } UNION { resource:Ginger_Rogers property:occupation ?z } UNION { resource:Ginger_Rogers property:occupation ?y } UNION { resource:Billie_Burke property:occupation ?z } UNION { resource:Billie_Burke property:occupation ?y } UNION { resource:Bruce_Cabot property:occupation ?z } UNION { resource:Bruce_Cabot property:occupation ?y } } . ?z rdf:type ontology:profession . ?y rdf:type ontology:occupation }
[]
profession occupation
Quantitative|Count|Mult. entity type|Clarification
Q235639
SYSTEM
Did you mean Billie Burke ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q373500 property:Q528892 ?z } UNION { resource:Q373500 property:Q528892 ?y } UNION { resource:Q21167342 property:Q528892 ?z } UNION { resource:Q21167342 property:Q528892 ?y } UNION { resource:Q235639 property:Q528892 ?z } UNION { resource:Q235639 property:Q528892 ?y } UNION { resource:Q373500 property:Q528892 ?z } UNION { resource:Q373500 property:Q528892 ?y } } . ?z rdf:type ontology:Q28640 . ?y rdf:type ontology:Q528892 }
Did you mean Billie Burke ?
Billie Burke
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Bruce_Cabot property:occupation ?z } UNION { resource:Bruce_Cabot property:occupation ?y } UNION { resource:Ginger_Rogers property:occupation ?z } UNION { resource:Ginger_Rogers property:occupation ?y } UNION { resource:Billie_Burke property:occupation ?z } UNION { resource:Billie_Burke property:occupation ?y } UNION { resource:Bruce_Cabot property:occupation ?z } UNION { resource:Bruce_Cabot property:occupation ?y } } . ?z rdf:type ontology:profession . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Bruce Cabot. Could you tell me the answer for that?
(Q373500,P106,c(Q28640)) (Q373500,P106,c(Q12737077)) (Q95089,P106,c(Q28640)) (Q95089,P106,c(Q12737077)) (Q235639,P106,c(Q28640)) (Q235639,P106,c(Q12737077)) (Q373500,P106,c(Q28640)) (Q373500,P106,c(Q12737077))
Q373500
['Q373500', 'P106', {'concept': 'Q28640'}] ['Q373500', 'P106', {'concept': 'Q12737077'}] ['Q95089', 'P106', {'concept': 'Q28640'}] ['Q95089', 'P106', {'concept': 'Q12737077'}] ['Q235639', 'P106', {'concept': 'Q28640'}] ['Q235639', 'P106', {'concept': 'Q12737077'}] ['Q373500', 'P106', {'concept': 'Q28640'}] ['Q373500', 'P106', {'concept': 'Q12737077'}]
['Bruce Cabot', 'occupation', {'concept': 'profession'}] ['Bruce Cabot', 'occupation', {'concept': 'occupation'}] ['Ginger Rogers', 'occupation', {'concept': 'profession'}] ['Ginger Rogers', 'occupation', {'concept': 'occupation'}] ['Billie Burke', 'occupation', {'concept': 'profession'}] ['Billie Burke', 'occupation', {'concept': 'occupation'}] ['Bruce Cabot', 'occupation', {'concept': 'profession'}] ['Bruce Cabot', 'occupation', {'concept': 'occupation'}]
[]
SYSTEM
1 professions and 2 occupations
Q10800557 Q33999 Q10798782
(Q373500,P106,c(Q28640)) (Q373500,P106,c(Q12737077)) (Q95089,P106,c(Q28640)) (Q95089,P106,c(Q12737077)) (Q235639,P106,c(Q28640)) (Q235639,P106,c(Q12737077)) (Q373500,P106,c(Q28640)) (Q373500,P106,c(Q12737077))
[ANSWER]
['Q373500', 'P106', {'concept': 'Q28640'}] ['Q373500', 'P106', {'concept': 'Q12737077'}] ['Q95089', 'P106', {'concept': 'Q28640'}] ['Q95089', 'P106', {'concept': 'Q12737077'}] ['Q235639', 'P106', {'concept': 'Q28640'}] ['Q235639', 'P106', {'concept': 'Q12737077'}] ['Q373500', 'P106', {'concept': 'Q28640'}] ['Q373500', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q373500 property:Q528892 ?z } UNION { resource:Q373500 property:Q528892 ?y } UNION { resource:Q21167342 property:Q528892 ?z } UNION { resource:Q21167342 property:Q528892 ?y } UNION { resource:Q235639 property:Q528892 ?z } UNION { resource:Q235639 property:Q528892 ?y } UNION { resource:Q373500 property:Q528892 ?z } UNION { resource:Q373500 property:Q528892 ?y } } . ?z rdf:type ontology:Q28640 . ?y rdf:type ontology:Q528892 }
film actor actor television actor
1 professions and 2 occupations
['Bruce Cabot', 'occupation', {'concept': 'profession'}] ['Bruce Cabot', 'occupation', {'concept': 'occupation'}] ['Ginger Rogers', 'occupation', {'concept': 'profession'}] ['Ginger Rogers', 'occupation', {'concept': 'occupation'}] ['Billie Burke', 'occupation', {'concept': 'profession'}] ['Billie Burke', 'occupation', {'concept': 'occupation'}] ['Bruce Cabot', 'occupation', {'concept': 'profession'}] ['Bruce Cabot', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Bruce_Cabot property:occupation ?z } UNION { resource:Bruce_Cabot property:occupation ?y } UNION { resource:Ginger_Rogers property:occupation ?z } UNION { resource:Ginger_Rogers property:occupation ?y } UNION { resource:Billie_Burke property:occupation ?z } UNION { resource:Billie_Burke property:occupation ?y } UNION { resource:Bruce_Cabot property:occupation ?z } UNION { resource:Bruce_Cabot property:occupation ?y } } . ?z rdf:type ontology:profession . ?y rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q2678111
P136
Q1792379 Q2342494 Q15416
USER
Which art genres can be considered as category for lesser number of collectables or television programs than action comedy film ?
(c(Q2342494)|c(Q15416),P136,c(Q1792379))
action less
action union
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q2342494
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q2678111
relation P136
type Q2342494
type Q15416
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?m WHERE { { ?b property:P136 ?m . ?b rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q1792379 } UNION { ?b property:P136 ?m . ?m rdf:type ontology:Q1792379 . ?b rdf:type ontology:Q15416 } } GROUP BY ?m } . FILTER ( ?q < ?i ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j property:P136 resource:Q2678111 . { { ?j rdf:type ontology:Q15416 } UNION { ?j rdf:type ontology:Q2342494 } } } } }
action comedy film
action less
action union
action find_reverse_tuple_counts
relation genre
type art genre
type collectable
action find_reverse_tuple_counts
relation genre
type art genre
type television program
action count
action filter_multi_types
action find_reverse
entity action comedy film
relation genre
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?m WHERE { { ?b property:genre ?m . ?b rdf:type ontology:collectable . ?m rdf:type ontology:art_genre } UNION { ?b property:genre ?m . ?m rdf:type ontology:art_genre . ?b rdf:type ontology:television_program } } GROUP BY ?m } . FILTER ( ?q < ?i ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j property:genre resource:action_comedy_film . { { ?j rdf:type ontology:television_program } UNION { ?j rdf:type ontology:collectable } } } } }
[]
art genre collectable television program
Q248726 Q1185399 Q214127
SYSTEM
Venus figurine, Fête galante, genre painting
Q3684595 Q5528690 Q3028680 Q11871 Q2334148 Q3026054 Q615498 Q3331891 Q742530 Q179700 Q17172848 Q909586 Q13464614 Q376693 Q26268098 Q2415378 Q20664530 Q645717 Q4376526 Q191839 Q18811686 Q212781 Q1935974 Q4836991 Q491158 Q1433099 Q596138 Q4075563 Q26906566 Q12303833 Q214127 Q26929442 Q18783399 Q210121 Q20656352 Q170571 Q17489160 Q249697 Q18809567 Q24723 Q15806966 Q1919632 Q550484 Q3072043 Q1146354 Q2973201 Q5493886 Q21088117 Q2302151 Q2330570 Q2117603 Q7308029 Q7135533 Q1601739 Q15858553 Q20730955 Q659396 Q93196 Q13209138 Q268416 Q18917896 Q3344204 Q166030 Q17514 Q1361392 Q986216 Q2894452 Q19310814 Q7046534 Q16954139 Q742333 Q1332055 Q1957385 Q248726 Q591055 Q3374808 Q718972 Q7379160 Q1429059 Q7444356 Q5145881 Q1935609 Q1361932 Q2584671 Q2278308 Q19968941 Q3640599 Q9259727 Q2566458 Q7645884 Q646420 Q421966 Q1190502 Q252370 Q11766734 Q20442589 Q11766730 Q605789 Q3928536 Q248583 Q2125170 Q936749 Q3374376 Q8812380 Q1723850 Q174864 Q182659 Q5456296 Q18809589 Q15898171 Q628165 Q1637212 Q1194480 Q619551 Q18822288 Q5151497 Q3368492 Q20656232 Q5366020 Q1851397 Q217117 Q3072031 Q17517379 Q2973217 Q14524057 Q3442060 Q1185399 Q4690955 Q17345318 Q2110126 Q1538137 Q1076506 Q1464369 Q735478 Q429767 Q459290 Q1150666 Q21905924 Q5769663 Q1115187 Q4774498 Q19926329 Q1740789 Q1743287 Q2642760 Q193206 Q1772 Q18810037 Q538812 Q15890340 Q5147136 Q169672 Q332564 Q158607 Q790192 Q468930 Q472637 Q18809643 Q1659897 Q1371394 Q6045390 Q1066582 Q12912091 Q10379557 Q652256 Q186602 Q3990883 Q1433443 Q250090 Q2281713 Q1593709 Q19039929 Q2448865 Q1194365 Q586250 Q7579035 Q185867 Q5883078 Q18353841 Q26929719 Q568286 Q1239328 Q21401869 Q2904863 Q336144 Q1323308 Q472808 Q390001 Q19926326 Q1353984 Q1779653 Q966880 Q7256214 Q1153484 Q12617225 Q1615638 Q358998 Q182956 Q1599788 Q17393935 Q7824966 Q7551149 Q2414609 Q20540663 Q5778924 Q5185614 Q13405586 Q34274 Q15146165 Q3249257 Q20443047 Q3399515 Q738473 Q723620 Q5465542 Q7362831 Q3409594 Q1503147 Q1683266 Q1800833 Q6949160 Q3476508 Q226730 Q1776156 Q583768 Q333357 Q2724311 Q1135802 Q7430734 Q819652 Q304538 Q937330 Q10635804 Q690810 Q1067324 Q7679101 Q1310296 Q3440942 Q18815437 Q1377546 Q5395423 Q1400853 Q16738862 Q16254232 Q4731380 Q11356864 Q3648909 Q2292320 Q3374353 Q1675302 Q5448026 Q643684 Q10493645 Q457832 Q21074330 Q2246055 Q1092621 Q3476533 Q16675884 Q20646003 Q11820947 Q10927187
(c(Q2342494)|c(Q15416),P136,c(Q1792379))
action less
action union
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q2342494
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q2678111
relation P136
type Q2342494
type Q15416
[ANSWERS] can be considered as category for lesser number of collectables or television programs than action comedy film
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?m WHERE { { ?b property:P136 ?m . ?b rdf:type ontology:Q2342494 . ?m rdf:type ontology:Q1792379 } UNION { ?b property:P136 ?m . ?m rdf:type ontology:Q1792379 . ?b rdf:type ontology:Q15416 } } GROUP BY ?m } . FILTER ( ?q < ?i ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j property:P136 resource:Q2678111 . { { ?j rdf:type ontology:Q15416 } UNION { ?j rdf:type ontology:Q2342494 } } } } }
elegiac comedy gay novel Masala schwank sculptural group Socratic dialogue documentary photography mythopoeia idyll statue theatre splatter film ceramic art herma Eastern schutterstuk crime literature Christian art double novel aerial photography interior view spaghetti western cityscape B western Revisionist Western tronie educational film outlaw biker film Beat poetry floral painting genre painting regional literature mythology sculpture social documentary photography alternate history film still life bust eulogy three-quarter portait literary fairy tale Email novel melodrama video installation dance film fashion photography political cinema fratire Haerlempjes animal painting still life photography Rabbinic literature Regency romance paranoid fiction heroic poetry Wuxia film tale equestrian statue Bollywood auteur film fiction history sculpture Northern veduta graffiti erotic photography paraliterature mashup verse poetry nocturne Musar literature history painting giallo cinematic fairy tale Venus figurine panegyric penny dreadful medical novel Rumberas film pop novel mob film collage film propaganda film family film Japanese horror capriccio double portrait bizarro fiction religious film bird-and-flower painting surf film Fayum mummy portraits nude photography surrealist cinema retelling Marine painting LGBT-related film allegorical painting war photography speculative fiction short story screwball comedy film race film literary nonsense mythological painting pseudo-documentary cannibal film elegy ballad fix-up full-frontal portrait survival film road movie Comic fantasy genre fiction apologue architectural view Comedy of remarriage pastorale in painting science fiction action film science fiction anime street photography burlesque Hyperlink cinema animated short film structural film pastoral poetry partisan film Fête galante Aga saga women's writing monodic lyric gore choral poetry making-of newsreel heroic romance independent film world cinema science fiction short story gothic horror film Commedia all'italiana anti-war film girls adventure stories poliziotteschi girls' literature vigilante film anecdote epitaph bust portrait novel of manners poetic prose courtly romance Samurai cinema Abstract animation marine art experimental film trompe-l'œil docufiction profile portrait encyclopedia of literature ethnographic film interactive novel fine-art photography fiction film zhanghui novel epic film period novel action thriller peplum film genre Ruba'i cantiga dime novel historical mysteries Lovecraftian horror pink film prison film sponsored film film noir Hollywood novel Architectural painting military science fiction novel cento national encyclopedia flashback film bit-lit anthology film Direct Cinema novelette pastoral boys adventure stories landscape photography colossal statue wildlife photography psychedelic literature folk art religious literature submarine films utopian and dystopian fiction portrait photography phrase book highway art topographical poetry social guidance film religious painting documentary novel black comedy film American literary regionalism non-fiction literature form gospel Regentenstuk adult animation dystopian literature equestrian portrait romance Bambocciata food writing Romantic thriller Fictional memoir monogatari political literature rockumentary Mythic fiction animal sculpture silent film girls with guns women in prison film abstract painting New Queer Cinema art film script mountain film Heimatfilm kouros boys' litterature nature photography exploitation film story Vita roman du terroir back portrait Nunsploitation monster erotica portrait painting statuette porn parody allegorical sculpture experimental film Popular-science film sexploitation film battle painting Itinerarium figure painting jukebox musical faction stoner film church interior Ancient Greek novel cinéma vérité monumental sculpture religious sculpture proletarian poetry epic poem autofiction
Venus figurine, Fête galante and genre painting can be considered as category for lesser number of collectables or television programs than action comedy film
Venus figurine Fête galante genre painting
action less
action union
action find_reverse_tuple_counts
relation genre
type art genre
type collectable
action find_reverse_tuple_counts
relation genre
type art genre
type television program
action count
action filter_multi_types
action find_reverse
entity action comedy film
relation genre
type collectable
type television program
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?m WHERE { { ?b property:genre ?m . ?b rdf:type ontology:collectable . ?m rdf:type ontology:art_genre } UNION { ?b property:genre ?m . ?m rdf:type ontology:art_genre . ?b rdf:type ontology:television_program } } GROUP BY ?m } . FILTER ( ?q < ?i ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?i ) WHERE { ?j property:genre resource:action_comedy_film . { { ?j rdf:type ontology:television_program } UNION { ?j rdf:type ontology:collectable } } } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q214127
P921
Q1656682
USER
Which event is that art genre a main subject of ?
(c(Q1656682),P921,Q214127)
action filter_type
action find_reverse
entity Q214127
relation P921
type Q1656682
[{'concept': 'Q1656682'}, 'P921', 'Q214127']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1656682 . ?b property:P921 resource:Q214127 }
genre painting
action filter_type
action find_reverse
entity genre painting
relation main subject
type event
[{'concept': 'event'}, 'main subject', 'genre painting']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:event . ?b property:main_subject resource:genre_painting }
[]
event
Clarification for simple ques.
Q1185399
SYSTEM
Did you mean Fête galante ?
Q248726 Q1185399 Q214127
(c(Q1656682),P921,Q248726) (c(Q1656682),P921,Q1185399) (c(Q1656682),P921,Q214127)
[ANSWER]
[{'concept': 'Q1656682'}, 'P921', 'Q248726'] [{'concept': 'Q1656682'}, 'P921', 'Q1185399'] [{'concept': 'Q1656682'}, 'P921', 'Q214127']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1656682 . ?b property:P921 resource:Q214127 }
Venus figurine Fête galante genre painting
Did you mean Fête galante ?
Fête galante
[{'concept': 'event'}, 'main subject', 'Venus figurine'] [{'concept': 'event'}, 'main subject', 'Fête galante'] [{'concept': 'event'}, 'main subject', 'genre painting']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:event . ?b property:main_subject resource:genre_painting }
[]
Simple Question (Coreferenced)
USER
No, I meant genre painting. Could you tell me the answer for that?
(c(Q1656682),P921,Q214127)
Q214127
[{'concept': 'Q1656682'}, 'P921', 'Q214127']
[{'concept': 'event'}, 'main subject', 'genre painting']
[]
Q15731395
SYSTEM
Petits théâtres de l'intime
Q15731395
(c(Q1656682),P921,Q214127)
action filter_type
action find_reverse
entity Q214127
relation P921
type Q1656682
[ANSWER] is that art genre a main subject of
[{'concept': 'Q1656682'}, 'P921', 'Q214127']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1656682 . ?b property:P921 resource:Q214127 }
Petits théâtres de l'intime
Petits théâtres de l'intime is that art genre a main subject of
Petits théâtres de l'intime
action filter_type
action find_reverse
entity genre painting
relation main subject
type event
[{'concept': 'event'}, 'main subject', 'genre painting']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:event . ?b property:main_subject resource:genre_painting }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q521447
P608
Q1656682 Q838948
USER
Which works of art were exhibited at less number of events than L'Action enchaînée ?
(c(Q838948),P608,c(Q1656682))
action less
action find_tuple_counts
relation P608
type Q838948
type Q1656682
action count
action filter_type
action find
entity Q521447
relation P608
type Q1656682
[{'concept': 'Q838948'}, 'P608', {'concept': 'Q1656682'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?u ) WHERE { ?o property:P608 ?q . ?o rdf:type ontology:Q838948 . ?q rdf:type ontology:Q1656682 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k rdf:type ontology:Q1656682 . resource:Q521447 property:P608 ?k } } . FILTER ( ?u < ?e ) }
L'Action enchaînée
action less
action find_tuple_counts
relation exhibition history
type work of art
type event
action count
action filter_type
action find
entity L'Action enchaînée
relation exhibition history
type event
[{'concept': 'work of art'}, 'exhibition history', {'concept': 'event'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?u ) WHERE { ?o property:exhibition_history ?q . ?o rdf:type ontology:work_of_art . ?q rdf:type ontology:event } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k rdf:type ontology:event . resource:L'Action_enchaînée property:exhibition_history ?k } } . FILTER ( ?u < ?e ) }
[]
event work of art
Q17450435 Q17451496 Q19336387
SYSTEM
The Chaste Susannah, Nymph with a Scorpion, The Bacchante
Q19205951 Q15732837 Q18147641 Q17515936 Q4945054 Q3209857 Q531329 Q6023012 Q20926408 Q17104796 Q18610104 Q1219934 Q1122002 Q17515944 Q7560304 Q17451496 Q27069181 Q21672346 Q27037078 Q7170104 Q17450435 Q19336387 Q552113 Q23815653 Q27095565 Q18156075 Q19061858 Q2543426 Q17442738 Q3428050 Q19204452 Q5818528 Q19347596 Q232087 Q17324780 Q4563532 Q17442691 Q15275645 Q4780980 Q457675 Q22920411 Q10954 Q1741424 Q7410402 Q6023877 Q19347123 Q19336183 Q19257953 Q17305020 Q2914912 Q3068259 Q3774964 Q1248136 Q5509283 Q22928187 Q3555769 Q18324892 Q3401618 Q6459619 Q3178029 Q2467518 Q526178 Q19257244 Q19205428 Q19257736 Q697208 Q21743180 Q734834
(c(Q838948),P608,c(Q1656682))
action less
action find_tuple_counts
relation P608
type Q838948
type Q1656682
action count
action filter_type
action find
entity Q521447
relation P608
type Q1656682
[ANSWERS] were exhibited at less number of events than L'Action enchaînée
[{'concept': 'Q838948'}, 'P608', {'concept': 'Q1656682'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?u ) WHERE { ?o property:P608 ?q . ?o rdf:type ontology:Q838948 . ?q rdf:type ontology:Q1656682 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k rdf:type ontology:Q1656682 . resource:Q521447 property:P608 ?k } } . FILTER ( ?u < ?e ) }
Hyacinth wounded Marble bust of Titian The Death of Lais Shepherd Playing the Flute Sleeping Hermaphrodite La Jeune Tarentine The Embarkation for Cythera Indiana Dirty Corner Dial H-I-S-T-O-R-Y The Three Graces The Destroyed City Altarpiece of St. Vincent Ferrer Bacchante and Goat Sometimes I Sits Nymph with a Scorpion John the Baptist and St Agnes Legend of Saint George (polyptych) Flying Carpets Persephone The Chaste Susannah The Bacchante Venus of Dolní Věstonice Saint Anne with the Virgin and Child Wings of a polyptych with donors -Man with son and Saint, Woman with daughters and Saint (burned) Dying Eurydice Sapho Dancing Satyr of Mazara del Vallo Neapolitan fisherboy Christ with singing and music-making Angels Sappho Oedipus and the Sphinx Egyptian Harpist Two men contemplating the Moon Cleopatra Jason with the Golden Fleece Neapolitan fisherboy Mrs. de Verninac as Diana the Huntress Appeal to the Great Spirit It Is Not the Homosexual Who Is Perverse, But the Society in Which He Lives The Simpleton Democritus meditating on the seat of the soul Man walking to the sky Samson Slaying a Philistine Indianapolis Island Bacchant Marie Carrier-Belleuse Prayer Tanagra The Stone Breakers Femme piquée par un serpent Saint Vincent Panels Antinous Mondragone Funky Bones The Victory Vercingétorix Saint Sebastian Premier Artiste LOVE Jeune fille de Mégare Visions of the Hereafter The Age of Bronze Homer Suzanne bathing Napoleon I in Coronation Robes Cellini Salt Cellar Berry Dress Ghent Altarpiece
The Chaste Susannah, Nymph with a Scorpion and The Bacchante were exhibited at less number of events than L'Action enchaînée
The Chaste Susannah Nymph with a Scorpion The Bacchante
action less
action find_tuple_counts
relation exhibition history
type work of art
type event
action count
action filter_type
action find
entity L'Action enchaînée
relation exhibition history
type event
[{'concept': 'work of art'}, 'exhibition history', {'concept': 'event'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?u ) WHERE { ?o property:exhibition_history ?q . ?o rdf:type ontology:work_of_art . ?q rdf:type ontology:event } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k rdf:type ontology:event . resource:L'Action_enchaînée property:exhibition_history ?k } } . FILTER ( ?u < ?e ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q214127 Q5970360
P101
Q3249551
USER
How many processes do genre painting or IEEE Emanuel R. Piore Award belong to ?
(Q214127,P101,c(Q3249551)) (Q5970360,P101,c(Q3249551))
action count
action union
action filter_type
action find
entity Q214127
relation P101
type Q3249551
action filter_type
action find
entity Q5970360
relation P101
type Q3249551
['Q214127', 'P101', {'concept': 'Q3249551'}] ['Q5970360', 'P101', {'concept': 'Q3249551'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { resource:Q214127 property:P101 ?r . ?r rdf:type ontology:Q3249551 } UNION { resource:Q5970360 property:P101 ?r . ?r rdf:type ontology:Q3249551 } }
genre painting IEEE Emanuel R. Piore Award
action count
action union
action filter_type
action find
entity genre painting
relation field of work
type process
action filter_type
action find
entity IEEE Emanuel R. Piore Award
relation field of work
type process
['genre painting', 'field of work', {'concept': 'process'}] ['IEEE Emanuel R. Piore Award', 'field of work', {'concept': 'process'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { resource:genre_painting property:field_of_work ?r . ?r rdf:type ontology:process } UNION { resource:IEEE_Emanuel_R._Piore_Award property:field_of_work ?r . ?r rdf:type ontology:process } }
[]
process
SYSTEM
2
Q750843 Q11629
(Q214127,P101,c(Q3249551)) (Q5970360,P101,c(Q3249551))
action count
action union
action filter_type
action find
entity Q214127
relation P101
type Q3249551
action filter_type
action find
entity Q5970360
relation P101
type Q3249551
[ANSWER]
['Q214127', 'P101', {'concept': 'Q3249551'}] ['Q5970360', 'P101', {'concept': 'Q3249551'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { resource:Q214127 property:P101 ?r . ?r rdf:type ontology:Q3249551 } UNION { resource:Q5970360 property:P101 ?r . ?r rdf:type ontology:Q3249551 } }
information processing art of painting
2
action count
action union
action filter_type
action find
entity genre painting
relation field of work
type process
action filter_type
action find
entity IEEE Emanuel R. Piore Award
relation field of work
type process
['genre painting', 'field of work', {'concept': 'process'}] ['IEEE Emanuel R. Piore Award', 'field of work', {'concept': 'process'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?d ) WHERE { { resource:genre_painting property:field_of_work ?r . ?r rdf:type ontology:process } UNION { resource:IEEE_Emanuel_R._Piore_Award property:field_of_work ?r . ?r rdf:type ontology:process } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15296437 Q5450360
P162
Q502895
USER
Which people are the creators of Finishing School or Live at the Cellar Door ?
OR((Q5450360,P162,c(Q502895)), (Q15296437,P162,c(Q502895)))
action filter_type
action union
action find
entity Q5450360
relation P162
action find
entity Q15296437
relation P162
type Q502895
{'OR': [['Q5450360', 'P162', {'concept': 'Q502895'}], ['Q15296437', 'P162', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . { { resource:Q5450360 property:P162 ?t } UNION { resource:Q15296437 property:P162 ?t } } }
Live at the Cellar Door Finishing School
action filter_type
action union
action find
entity Finishing School
relation producer
action find
entity Live at the Cellar Door
relation producer
type common name
{'OR': [['Finishing School', 'producer', {'concept': 'common name'}], ['Live at the Cellar Door', 'producer', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . { { resource:Finishing_School property:producer ?t } UNION { resource:Live_at_the_Cellar_Door property:producer ?t } } }
[]
common name
Q446427 Q633 Q1493931
SYSTEM
Merian C. Cooper, Neil Young, Kenneth Macgowan
Q446427 Q633 Q1493931
OR((Q5450360,P162,c(Q502895)), (Q15296437,P162,c(Q502895)))
action filter_type
action union
action find
entity Q5450360
relation P162
action find
entity Q15296437
relation P162
type Q502895
[ANSWERS] are the creators of Finishing School or Live at the Cellar Door
{'OR': [['Q5450360', 'P162', {'concept': 'Q502895'}], ['Q15296437', 'P162', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . { { resource:Q5450360 property:P162 ?t } UNION { resource:Q15296437 property:P162 ?t } } }
Merian C. Cooper Neil Young Kenneth Macgowan
Merian C. Cooper, Neil Young and Kenneth Macgowan are the creators of Finishing School or Live at the Cellar Door
Merian C. Cooper Neil Young Kenneth Macgowan
action filter_type
action union
action find
entity Finishing School
relation producer
action find
entity Live at the Cellar Door
relation producer
type common name
{'OR': [['Finishing School', 'producer', {'concept': 'common name'}], ['Live at the Cellar Door', 'producer', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . { { resource:Finishing_School property:producer ?t } UNION { resource:Live_at_the_Cellar_Door property:producer ?t } } }
[]