Simple Question (Direct)
Simple Question
Q221760
P136
Q1792379
USER
What can be considered as category for I Am Twenty ?
(Q221760,P136,c(Q1792379))
action filter_type
action find
entity Q221760
relation P136
type Q1792379
['Q221760', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?f WHERE { resource:Q221760 property:P136 ?f . ?f rdf:type ontology:Q1792379 }
I Am Twenty
action filter_type
action find
entity I Am Twenty
relation genre
type art genre
['I Am Twenty', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?f WHERE { resource:I_Am_Twenty property:genre ?f . ?f rdf:type ontology:art_genre }
[]
art genre
Q130232
SYSTEM
drama film
Q130232
(Q221760,P136,c(Q1792379))
action filter_type
action find
entity Q221760
relation P136
type Q1792379
The [ANSWER] can be considered as category for I Am Twenty
['Q221760', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?f WHERE { resource:Q221760 property:P136 ?f . ?f rdf:type ontology:Q1792379 }
drama film
The drama film can be considered as category for I Am Twenty
drama film
action filter_type
action find
entity I Am Twenty
relation genre
type art genre
['I Am Twenty', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?f WHERE { resource:I_Am_Twenty property:genre ?f . ?f rdf:type ontology:art_genre }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P136
Q1792379 Q2342494 Q838948
USER
Which art genres do lesser number of collectables or works of art belong to than that art genre ?
(c(Q2342494)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q130232
relation P136
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P136 resource:Q130232 . { { ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q2342494 } } } } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:P136 ?x . ?r rdf:type ontology:Q2342494 . ?x rdf:type ontology:Q1792379 } UNION { ?r property:P136 ?x . ?x rdf:type ontology:Q1792379 . ?r rdf:type ontology:Q838948 } } GROUP BY ?x } }
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 work of art
action count
action filter_multi_types
action find_reverse
entity drama film
relation genre
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:genre resource:drama_film . { { ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:collectable } } } } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:genre ?x . ?r rdf:type ontology:collectable . ?x rdf:type ontology:art_genre } UNION { ?r property:genre ?x . ?x rdf:type ontology:art_genre . ?r rdf:type ontology:work_of_art } } GROUP BY ?x } }
[]
art genre collectable work of art
Q248726 Q1185399 Q214127
SYSTEM
Venus figurine, Fête galante, genre painting
Q3684595 Q5528690 Q1029945 Q3028680 Q590103 Q11871 Q3656658 Q1312571 Q7440128 Q2334148 Q3026054 Q2421000 Q615498 Q3331891 Q742530 Q2593937 Q179700 Q1862618 Q17172848 Q909586 Q16551815 Q13464614 Q376693 Q883179 Q26268098 Q3328821 Q2415378 Q1342372 Q5793771 Q20669574 Q20664530 Q645717 Q319226 Q319221 Q725377 Q44342 Q36279 Q93204 Q18536349 Q138679 Q4376526 Q191839 Q870452 Q18811686 Q1339864 Q185529 Q208555 Q959790 Q212781 Q1747837 Q1935974 Q1535153 Q16681629 Q1057172 Q4836991 Q491158 Q3811649 Q2254211 Q1433099 Q1161145 Q596138 Q1164267 Q4075563 Q471839 Q26906566 Q12303833 Q214127 Q26929442 Q7834250 Q7225114 Q18783399 Q210121 Q20737410 Q223945 Q20656352 Q465821 Q188473 Q170571 Q147516 Q17489160 Q5442753 Q249697 Q18809567 Q24723 Q27020789 Q279060 Q15806966 Q1919632 Q1788980 Q643873 Q3025978 Q3072049 Q550484 Q3072043 Q20669538 Q2561438 Q629917 Q21616374 Q1391420 Q1146354 Q5292 Q22981906 Q2973201 Q157394 Q5493886 Q1033891 Q2321734 Q21088117 Q2302151 Q7451276 Q858330 Q2330570 Q2117603 Q180494 Q1146335 Q12197074 Q7308029 Q13408937 Q185363 Q192239 Q200092 Q6647667 Q7135533 Q2520572 Q3940786 Q1601739 Q853630 Q1519335 Q15858553 Q192782 Q3238422 Q20730955 Q659396 Q93196 Q13209138 Q268416 Q18917896 Q3344204 Q166030 Q7578116 Q17514 Q1084059 Q775169 Q1361392 Q21615367 Q26228231 Q986216 Q1425557 Q2894452 Q794357 Q19310814 Q7046534 Q747381 Q16954139 Q21931667 Q622548 Q742333 Q1332055 Q1957385 Q248726 Q591055 Q3374808 Q718972 Q7379160 Q1429059 Q7444356 Q193606 Q157443 Q5145881 Q1935609 Q783459 Q1361932 Q1589214 Q1426213 Q2735649 Q2484376 Q7644030 Q2584671 Q3440961 Q26225470 Q3440984 Q3056541 Q131539 Q477756 Q2278308 Q622291 Q19968941 Q1072723 Q3640599 Q9259727 Q7551315 Q4984974 Q2254193 Q2566458 Q7645884 Q909887 Q3272147 Q860626 Q11163999 Q26928598 Q646420 Q1341051 Q421966 Q1190502 Q252370 Q26225484 Q2137852 Q11766734 Q4875794 Q20442589 Q11766730 Q605789 Q3928536 Q1200678 Q275934 Q248583 Q2125170 Q936749 Q3374376 Q8812380 Q1723850 Q174864 Q182659 Q384515 Q2477736 Q5456296 Q18809589 Q15898171 Q628165 Q693 Q11558987 Q699 Q1637212 Q12799318 Q10728648 Q1328330 Q1194480 Q619551 Q18822288 Q5151497 Q7168625 Q3368492 Q20656232 Q13136 Q5366020 Q1851397 Q217117 Q11825892 Q3072031 Q224700 Q17517379 Q11452132 Q2973217 Q14524057 Q1325447 Q3442060 Q2490520 Q459435 Q18211112 Q2678111 Q1185399 Q4690955 Q17345318 Q2110126 Q1538137 Q6960620 Q3381576 Q2975633 Q20358335 Q1076506 Q824894 Q1464369 Q735478 Q429767 Q1257444 Q6045975 Q5457615 Q20443008 Q459290 Q1150666 Q26228228 Q21905924 Q5769663 Q740919 Q5897543 Q369747 Q185598 Q1115187 Q1054574 Q4774498 Q19926329 Q1740789 Q17013749 Q1743287 Q10916116 Q2642760 Q193206 Q1772 Q18810037 Q538812 Q482 Q908667 Q15890340 Q131138 Q5147136 Q2670855 Q2297927 Q169672 Q332564 Q5110346 Q7210294 Q1159457 Q5967378 Q158607 Q27801 Q1347298 Q790192 Q191163 Q468930 Q193866 Q474090 Q472637 Q18809643 Q1659897 Q1941707 Q1371394 Q4235011 Q10992055 Q4184 Q6045390 Q1066582 Q12912091 Q605076 Q1191618 Q10379557 Q192881 Q652256 Q1225344 Q186602 Q3990883 Q1433443 Q3990887 Q3440959 Q250090 Q2802102 Q2281713 Q27022970 Q1593709 Q19039929 Q367591 Q5258881 Q58854 Q26987767 Q846544 Q2448865 Q1125133 Q1194365 Q37484 Q27022710 Q586250 Q11793314 Q208505 Q223638 Q747483 Q7579035 Q185867 Q1004 Q3541116 Q4160933 Q24862 Q599558 Q5883078 Q663106 Q5575435 Q20665028 Q10453828 Q1233720 Q1129795 Q645928 Q18353841 Q286328 Q26929719 Q568286 Q17327049 Q1239328 Q21401869 Q2904863 Q3072039 Q1787111 Q336144 Q1384425 Q1323308 Q472808 Q390001 Q1093312 Q172980 Q131395 Q19926326 Q1353984 Q1097273 Q1779653 Q44563 Q966880 Q7256214 Q3454432 Q2367164 Q222639 Q223770 Q1153484 Q20089346 Q174526 Q182357 Q12617225 Q1615638 Q358998 Q182956 Q1599788 Q17393935 Q20669641 Q7824966 Q19367312 Q948970 Q6585139 Q7551149 Q2414609 Q20540663 Q5778924 Q5185614 Q2439025 Q842256 Q186424 Q583976 Q13405586 Q1619888 Q34274 Q15146165 Q3249257 Q20443047 Q1784733 Q3399515 Q149537 Q738473 Q723620 Q5465542 Q1496857 Q7362831 Q3409594 Q60797 Q15919135 Q6619804 Q624771 Q1503147 Q1683266 Q1800833 Q6949160 Q3476508 Q226730 Q1776156 Q583768 Q2608088 Q542475 Q1117103 Q333357 Q2724311 Q1135802 Q112983 Q7430734 Q819652 Q304538 Q937330 Q1940294 Q10635804 Q12132683 Q1481165 Q2660540 Q1503133 Q690810 Q1067324 Q2016518 Q7679101 Q1760864 Q26906554 Q1310296 Q2143665 Q3294465 Q3440942 Q3739522 Q20664817 Q18815437 Q3634883 Q1377546 Q5395423 Q1400853 Q16738862 Q35760 Q16254232 Q4731380 Q11356864 Q3648909 Q2292320 Q3374353 Q512207 Q20667180 Q1675302 Q4914883 Q2421031 Q5448026 Q643684 Q10493645 Q676 Q457832 Q604725 Q496523 Q21074330 Q2246055 Q1092621 Q3476533 Q16675884 Q20646003 Q11820947 Q10927187
(c(Q2342494)|c(Q838948),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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q130232
relation P136
type Q2342494
type Q838948
[ANSWERS] lesser number of collectables or works of art belong to than that art genre
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:P136 resource:Q130232 . { { ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q2342494 } } } } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:P136 ?x . ?r rdf:type ontology:Q2342494 . ?x rdf:type ontology:Q1792379 } UNION { ?r property:P136 ?x . ?x rdf:type ontology:Q1792379 . ?r rdf:type ontology:Q838948 } } GROUP BY ?x } }
elegiac comedy gay novel education novel Masala psychological thriller schwank lesbian pulp fiction developmental novel nautical fiction sculptural group Socratic dialogue novelization documentary photography mythopoeia idyll conspiracy fiction statue gay literature theatre splatter film emblematica ceramic art herma blaxploitation Eastern narration schutterstuk monster film crime fiction short story creative nonfiction crime literature Christian art adventure novel adventure film graphic novel legend biography documentary film pamphlet travel photography double novel aerial photography family saga interior view sports film pornographic film parable crime film spaghetti western zombie comedy cityscape superhero film alternate history literature fantasy literature B western Revisionist Western juvenile fantasy political fiction tronie prose poetry educational film travel book outlaw biker film science fiction film Beat poetry floral painting genre painting regional literature transgressive fiction political satire mythology sculpture social documentary photography philosophical story Bildungsroman alternate history film epistolary novel action film still life magic realism bust female buddy film eulogy three-quarter portait literary fairy tale steampunk nove robinsonade Email novel melodrama crime-comedy film legal drama dialogue zombie film video installation dance film pornographic literature slice of life Jidaigeki vampire novel specialized literature fashion photography encyclopedia treasure hunt film political cinema fantasy film fratire martial arts film police procedural Haerlempjes animal painting sentimental novel romance novel still life photography Rabbinic literature saga teen film western novel Regency romance philosophical literature chronicle historical novel horror film literary fiction paranoid fiction esoteric novel scientific romance heroic poetry slasher film ghost story Wuxia film gothic novel science fiction literature tale equestrian statue Bollywood auteur film fiction history sculpture Northern veduta spiritual autobiography graffiti Christian literature Weird West erotic photography children's novel cyberpunk novel paraliterature vampire literature mashup libertine novel verse poetry nocturne light novel Musar literature pornographic novel parody film history painting giallo cinematic fairy tale Venus figurine panegyric penny dreadful medical novel Rumberas film pop novel mob film horror literature comedy film collage film propaganda film Künstlerroman family film cloak and dagger novel espionage novel Romantic poetry thriller film supernatural fiction Japanese horror sensation novel alternate history novel historical romance autobiographical novel children's literature chick lit capriccio political thriller double portrait travel literature bizarro fiction religious film social problem film buddy cop film rape and revenge film bird-and-flower painting surf film sketch story found footage romantic comedy youth and children's literature dystopian novel Fayum mummy portraits post-apocalyptic film nude photography surrealist cinema retelling apocalyptic novel vampire film Marine painting beach party film LGBT-related film allegorical painting war photography speculative fiction short story mystery film Tokusatsu screwball comedy film race film literary nonsense mythological painting pseudo-documentary cannibal film elegy ballad treatise Lost World fiction fix-up full-frontal portrait survival film road movie fable sea adventure novel fairy tale Comic fantasy powest occult detective fiction hardboiled genre fiction apologue architectural view Comedy of remarriage historical period drama pastorale in painting science fiction action film reference work science fiction anime street photography burlesque young adult novel Hyperlink cinema comedy horror animated short film erotic novel structural film pastoral poetry non-fiction novel partisan film legal thriller mockumentary magical feminism action comedy film Fête galante Aga saga women's writing monodic lyric gore travel novel monochrome photography coming-of-age story political novel choral poetry sex manual making-of newsreel heroic romance film adaptation satiric novel flash fiction dystopian film independent film world cinema biopunk novel science fiction short story gothic horror film social novel hood film war film diary Commedia all'italiana romance film anti-war film girls adventure stories poliziotteschi historical film girls' literature history book vigilante film anecdote epitaph bust portrait novel of manners poetry war novel poetic prose joke courtly romance travel documentary spy film Samurai cinema Abstract animation Christian novel political drama chivalric romance speculative fiction marine art non-fiction literature serial experimental film landscape art trompe-l'œil annals narrative poetry docufiction profile portrait encyclopedia of literature mockbuster ethnographic film space Western fantasy novel autobiography interactive novel fine-art photography fiction film cookbook erotic romance novel zhanghui novel tragicomedy epic film dictator novel period novel action thriller peplum film genre medical thriller thriller novel Ruba'i family saga novel cantiga utopian novel dime novel historical mysteries Western literature werewolf film literary criticism feminist novel disaster film Lovecraftian horror fictional diary pink film epic poem postcyberpunk novel prison film indigenista novel crime novel guide book erotic literature sponsored film film noir comic true crime Junbungaku short film erotic film Hollywood novel buddy film novela realista detective literature time travel novel young adult literature popular science literature biographical film Architectural painting psychological novel military science fiction novel cento scientific literature national encyclopedia flashback film bit-lit trial film biographical encyclopedia anthology film experimental literature Direct Cinema novelette pastoral historical mystery Western dialogue boys adventure stories landscape photography epic literature colossal statue picaresque novel wildlife photography psychedelic literature hysterical realism epic swashbuckler film B movie folk art science fiction animation cyberpunk lyric poetry religious literature submarine films utopian and dystopian fiction portrait photography phrase book highway art gothic fiction topographical poetry crime thriller verse novel mystery fiction social guidance film religious painting documentary novel black comedy film American literary regionalism erotic thriller musical film detective fiction campus novel non-fiction literature form pastoral novel gospel Regentenstuk adult animation dystopian literature correspondence equestrian portrait novella romance Bambocciata food writing prayerbook Romantic thriller Fictional memoir sermon horror short story parallel novel slapstick monogatari political literature rockumentary Mythic fiction animal sculpture silent film girls with guns women in prison film invasion literature costume drama Z movie abstract painting New Queer Cinema art film memoir script mountain film Heimatfilm kouros noir novel boys' litterature science fiction novel Holocaust literature mock-heroic poem travel journal nature photography exploitation film philosophical novel story nature documentary post-apocalyptic novel Vita children's film lesbian literature roman du terroir self-help book detective novel back portrait supernatural drama Nunsploitation monster erotica portrait painting statuette essay porn parody allegorical sculpture experimental film Popular-science film sexploitation film battle painting roman à clef horror novel Itinerarium biographical novel neo-noir figure painting jukebox musical faction prose stoner film psychological horror heist 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 lesser number of collectables or works of art belong to than that art genre
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 work of art
action count
action filter_multi_types
action find_reverse
entity drama film
relation genre
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y property:genre resource:drama_film . { { ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:collectable } } } } . FILTER ( ?f < ?q ) . { SELECT DISTINCT ?x ( COUNT ( ?r ) AS ?f ) WHERE { { ?r property:genre ?x . ?r rdf:type ontology:collectable . ?x rdf:type ontology:art_genre } UNION { ?r property:genre ?x . ?x rdf:type ontology:art_genre . ?r rdf:type ontology:work_of_art } } GROUP BY ?x } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P135
Q2198855
USER
How many cultural movements were that art genre associated with ?
(Q1185399,P135,c(Q2198855))
['Q1185399', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1185399 property:Q1149963 ?z . ?z rdf:type ontology:Q2198855 }
['Fête galante', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Fête_galante property:movement ?z . ?z rdf:type ontology:cultural_movement }
[]
cultural movement
Quantitative|Count|Single entity type|Clarification
Q248726
SYSTEM
Did you mean Venus figurine ?
(Q248726,P135,c(Q2198855)) (Q1185399,P135,c(Q2198855)) (Q214127,P135,c(Q2198855))
[ANSWER]
['Q248726', 'P135', {'concept': 'Q2198855'}] ['Q1185399', 'P135', {'concept': 'Q2198855'}] ['Q214127', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1185399 property:Q1149963 ?z . ?z rdf:type ontology:Q2198855 }
Did you mean Venus figurine ?
Venus figurine
['Venus figurine', 'movement', {'concept': 'cultural movement'}] ['Fête galante', 'movement', {'concept': 'cultural movement'}] ['genre painting', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Fête_galante property:movement ?z . ?z rdf:type ontology:cultural_movement }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Fête galante. Could you tell me the answer for that?
(Q1185399,P135,c(Q2198855))
Q1185399
['Q1185399', 'P135', {'concept': 'Q2198855'}]
['Fête galante', 'movement', {'concept': 'cultural movement'}]
[]
SYSTEM
1
Q122960
(Q1185399,P135,c(Q2198855))
[ANSWER]
['Q1185399', 'P135', {'concept': 'Q2198855'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1185399 property:Q1149963 ?z . ?z rdf:type ontology:Q2198855 }
rococo
1
['Fête galante', 'movement', {'concept': 'cultural movement'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Fête_galante property:movement ?z . ?z rdf:type ontology:cultural_movement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q248726
P138
Q15619164
USER
Which abstract being is namesake of Venus figurine ?
(Q248726,P138,c(Q15619164))
action filter_type
action find
entity Q248726
relation P138
type Q15619164
['Q248726', 'P138', {'concept': 'Q15619164'}]
SELECT DISTINCT ?r WHERE { resource:Q248726 property:P138 ?r . ?r rdf:type ontology:Q15619164 }
Venus figurine
action filter_type
action find
entity Venus figurine
relation named after
type abstract being
['Venus figurine', 'named after', {'concept': 'abstract being'}]
SELECT DISTINCT ?r WHERE { resource:Venus_figurine property:named_after ?r . ?r rdf:type ontology:abstract_being }
[]
abstract being
Q47652
SYSTEM
Venus
Q47652
(Q248726,P138,c(Q15619164))
action filter_type
action find
entity Q248726
relation P138
type Q15619164
Of [ANSWER] is namesake of [ANSWER] figurine
['Q248726', 'P138', {'concept': 'Q15619164'}]
SELECT DISTINCT ?r WHERE { resource:Q248726 property:P138 ?r . ?r rdf:type ontology:Q15619164 }
Venus
Of Venus is namesake of Venus figurine
Venus
action filter_type
action find
entity Venus figurine
relation named after
type abstract being
['Venus figurine', 'named after', {'concept': 'abstract being'}]
SELECT DISTINCT ?r WHERE { resource:Venus_figurine property:named_after ?r . ?r rdf:type ontology:abstract_being }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19456906
Q15619164
USER
And how about Ashtabhuji Temple?
(Q19456906,P138,c(Q15619164))
action filter_type
action find
entity Q19456906
relation P138
type Q15619164
['Q19456906', 'P138', {'concept': 'Q15619164'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15619164 . resource:Q19456906 property:P138 ?n }
Ashtabhuji Temple
action filter_type
action find
entity Ashtabhuji Temple
relation named after
type abstract being
['Ashtabhuji Temple', 'named after', {'concept': 'abstract being'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:abstract_being . resource:Ashtabhuji_Temple property:named_after ?n }
[]
abstract being
Q11378
SYSTEM
Shiva
Q11378
(Q19456906,P138,c(Q15619164))
action filter_type
action find
entity Q19456906
relation P138
type Q15619164
[ANSWER]
['Q19456906', 'P138', {'concept': 'Q15619164'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15619164 . resource:Q19456906 property:P138 ?n }
Shiva
Shiva
action filter_type
action find
entity Ashtabhuji Temple
relation named after
type abstract being
['Ashtabhuji Temple', 'named after', {'concept': 'abstract being'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:abstract_being . resource:Ashtabhuji_Temple property:named_after ?n }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P180
Q15619164 Q386724
USER
How many abstract beings are demonstrated in around the same number of works as that abstract being ?
(c(Q386724),P180,c(Q15619164))
action count
action approx
action find_reverse_tuple_counts
relation P180
type Q15619164
type Q386724
action count
action filter_type
action find
entity Q11378
relation P180
type Q15619164
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q15619164'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?l ) WHERE { ?y rdf:type ontology:Q15619164 . ?b rdf:type ontology:Q386724 . ?b property:P180 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:Q11378 property:P180 ?m . ?m rdf:type ontology:Q15619164 } } . FILTER ( ?l = ?j ) }
action count
action approx
action find_reverse_tuple_counts
relation depicts
type abstract being
type work
action count
action filter_type
action find
entity Shiva
relation depicts
type abstract being
[{'concept': 'work'}, 'depicts', {'concept': 'abstract being'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?l ) WHERE { ?y rdf:type ontology:abstract_being . ?b rdf:type ontology:work . ?b property:depicts ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:Shiva property:depicts ?m . ?m rdf:type ontology:abstract_being } } . FILTER ( ?l = ?j ) }
[]
abstract being work
SYSTEM
114
Q1676195 Q188536 Q607452 Q766677 Q394251 Q177413 Q338298 Q836170 Q27655557 Q152262 Q1417365 Q5405822 Q170569 Q645312 Q1643451 Q390973 Q1102307 Q214672 Q11378 Q2397602 Q42891 Q697530 Q5011 Q682855 Q2005509 Q185498 Q188236 Q46491 Q502931 Q825 Q332885 Q17309 Q217420 Q2756466 Q146921 Q1150 Q248242 Q4654 Q186350 Q1809764 Q14515330 Q47553 Q658028 Q1155034 Q17324876 Q726282 Q126916 Q16166222 Q4640 Q190123 Q4649 Q1676032 Q1579 Q898454 Q47652 Q1028642 Q18813799 Q2779171 Q918202 Q3515941 Q15275883 Q205985 Q207234 Q18813817 Q18813812 Q18813813 Q6497135 Q165170 Q654361 Q178831 Q170485 Q1302646 Q332188 Q831462 Q112 Q9351 Q6674 Q2037752 Q48853 Q15275879 Q5443792 Q2661483 Q468912 Q590467 Q132582 Q134270 Q1616828 Q5271277 Q125046 Q11389 Q2637148 Q754544 Q11380 Q890402 Q6745800 Q167685 Q24043874 Q1158552 Q843382 Q392239 Q132543 Q213440 Q272523 Q2984446 Q1163476 Q207174 Q189726 Q130274 Q147461 Q270867 Q10706721 Q2279990 Q1140396 Q630823
(c(Q386724),P180,c(Q15619164))
action count
action approx
action find_reverse_tuple_counts
relation P180
type Q15619164
type Q386724
action count
action filter_type
action find
entity Q11378
relation P180
type Q15619164
[ANSWER]
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q15619164'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?l ) WHERE { ?y rdf:type ontology:Q15619164 . ?b rdf:type ontology:Q386724 . ?b property:P180 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:Q11378 property:P180 ?m . ?m rdf:type ontology:Q15619164 } } . FILTER ( ?l = ?j ) }
Ishum Anu Saavik Yahweh Aglibol demon Acca Larentia Ninhursag Bunene Pluto Khor-akhti Eucharis Atum Bacchus Alecto Shala Lady Justice Enlil Shiva Bahubali Krishna Amurru Cupid Hadad Nusku Lucifer Cybele Osiris humanoid God Faust Pierrot Sin Ištaran Thoth Mercury Teshub Fortuna God the Father Nanaya Proserpina Ishtar Ariel Fiammetta Erminia Ninurta Minerva Rima Vulcan Marduk Jupiter Ivan Tsarevich Ganesha Ningal Venus Nintinugga Amalia Urizen Di Penates Tashmetum Atala goddess Bellona Bronwen Bronjay Hoopes Mitra Europa genius Aurora Parvati Malakbel Shamash Galahad Mars Pikachu devil Tishpak Angelica Chactas Ferdinand Aya Nergal Baʿal Pan Helios witch Diana Prince Juno Brahma Lysander Atepomarus Vishnu Bogatyr Mammetun Janus Umar Sigmund Psyche Nabu Diana Tyche Inanna Elaine of Astolat Ruggiero personification Enki Astarte Zababa Terra Tuvstarr Scapino Koschei Sancho Panza
114
action count
action approx
action find_reverse_tuple_counts
relation depicts
type abstract being
type work
action count
action filter_type
action find
entity Shiva
relation depicts
type abstract being
[{'concept': 'work'}, 'depicts', {'concept': 'abstract being'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?l ) WHERE { ?y rdf:type ontology:abstract_being . ?b rdf:type ontology:work . ?b property:depicts ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { resource:Shiva property:depicts ?m . ?m rdf:type ontology:abstract_being } } . FILTER ( ?l = ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q26267230
P180
Q82799 Q502895 Q1792379
USER
Which art genres depict more number of names or people than Portrait of a king of marksmen (presumably Jacobus Albertus de Backer) ?
(c(Q1792379),P180,c(Q82799)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P180
type Q1792379
type Q82799
action find_tuple_counts
relation P180
type Q1792379
type Q502895
action count
action filter_multi_types
action find
entity Q26267230
relation P180
type Q82799
type Q502895
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q82799'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q82799 ) ( ontology:Q502895 ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z rdf:type ?r . VALUES ( ?r ) { ( ontology:Q82799 ) ( ontology:Q502895 ) } } . resource:Q26267230 property:P180 ?z } } . FILTER ( ?b > ?w ) }
Portrait of a king of marksmen (presumably Jacobus Albertus de Backer)
action greater
action union
action find_tuple_counts
relation depicts
type art genre
type name
action find_tuple_counts
relation depicts
type art genre
type common name
action count
action filter_multi_types
action find
entity Portrait of a king of marksmen (presumably Jacobus Albertus de Backer)
relation depicts
type name
type common name
[{'concept': 'art genre'}, 'depicts', [{'concept': 'name'}, {'concept': 'common name'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:name ) ( ontology:common_name ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z rdf:type ?r . VALUES ( ?r ) { ( ontology:name ) ( ontology:common_name ) } } . resource:Portrait_of_a_king_of_marksmen_(presumably_Jacobus_Albertus_de_Backer) property:depicts ?z } } . FILTER ( ?b > ?w ) }
[]
name common name art genre
Q5712848 Q18688281 Q26317896
SYSTEM
Self-Portrait with Monkey, Portrait of A.S.Pushkin, Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury
Q21856809 Q22073388 Q26318263 Q26706171 Q5712848 Q18688281 Q22677763 Q27087718 Q22670323 Q26317896 Q315569 Q3399515 Q659396 Q26709687 Q18579186 Q22677734 Q26668969
(c(Q1792379),P180,c(Q82799)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P180
type Q1792379
type Q82799
action find_tuple_counts
relation P180
type Q1792379
type Q502895
action count
action filter_multi_types
action find
entity Q26267230
relation P180
type Q82799
type Q502895
[ANSWERS] depict more number of names or people than Portrait of a king of marksmen (presumably Jacobus Albertus de Backer)
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q82799'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q82799 ) ( ontology:Q502895 ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z rdf:type ?r . VALUES ( ?r ) { ( ontology:Q82799 ) ( ontology:Q502895 ) } } . resource:Q26267230 property:P180 ?z } } . FILTER ( ?b > ?w ) }
Selim Palmgren Henry M. Jackson Bust of Edward VII Sir Austen Henry Layard Self-Portrait with Monkey Portrait of A.S.Pushkin Statue of Risto Ryti Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval JUHANA III - The king of Sweden 1568-1592 -relief Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury Karl Marx Monument equestrian portrait equestrian statue Antoine Coypel Petrus Franciscus Greive (1811-1872) Statue of Duke John Bust Of Sir Joseph Paxton At Crystal Palace Park
Self-Portrait with Monkey, Portrait of A.S.Pushkin and Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury depict more number of names or people than Portrait of a king of marksmen (presumably Jacobus Albertus de Backer)
Self-Portrait with Monkey Portrait of A.S.Pushkin Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury
action greater
action union
action find_tuple_counts
relation depicts
type art genre
type name
action find_tuple_counts
relation depicts
type art genre
type common name
action count
action filter_multi_types
action find
entity Portrait of a king of marksmen (presumably Jacobus Albertus de Backer)
relation depicts
type name
type common name
[{'concept': 'art genre'}, 'depicts', [{'concept': 'name'}, {'concept': 'common name'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?i ) AS ?b ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:name ) ( ontology:common_name ) } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { ?z rdf:type ?r . VALUES ( ?r ) { ( ontology:name ) ( ontology:common_name ) } } . resource:Portrait_of_a_king_of_marksmen_(presumably_Jacobus_Albertus_de_Backer) property:depicts ?z } } . FILTER ( ?b > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q22677825
P180
Q82799 Q502895 Q1792379
USER
And what about Maire-sculpture?
(c(Q1792379),P180,c(Q82799)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P180
type Q1792379
type Q82799
action find_tuple_counts
relation P180
type Q1792379
type Q502895
action count
action filter_multi_types
action find
entity Q22677825
relation P180
type Q82799
type Q502895
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q82799'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?t ) WHERE { { ?n property:P180 ?o . ?n rdf:type ontology:Q1792379 . ?o rdf:type ontology:Q82799 } UNION { ?n property:P180 ?o . ?n rdf:type ontology:Q1792379 . ?o rdf:type ontology:Q502895 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q22677825 property:P180 ?v . { VALUES ( ?d ) { ( ontology:Q82799 ) ( ontology:Q502895 ) } . ?v rdf:type ?d } } } . FILTER ( ?t > ?s ) }
Maire-sculpture
action greater
action union
action find_tuple_counts
relation depicts
type art genre
type name
action find_tuple_counts
relation depicts
type art genre
type common name
action count
action filter_multi_types
action find
entity Maire-sculpture
relation depicts
type name
type common name
[{'concept': 'art genre'}, 'depicts', [{'concept': 'name'}, {'concept': 'common name'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?t ) WHERE { { ?n property:depicts ?o . ?n rdf:type ontology:art_genre . ?o rdf:type ontology:name } UNION { ?n property:depicts ?o . ?n rdf:type ontology:art_genre . ?o rdf:type ontology:common_name } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Maire-sculpture property:depicts ?v . { VALUES ( ?d ) { ( ontology:name ) ( ontology:common_name ) } . ?v rdf:type ?d } } } . FILTER ( ?t > ?s ) }
[]
name common name art genre
Q5712848 Q18688281 Q26317896
SYSTEM
Self-Portrait with Monkey, Portrait of A.S.Pushkin, Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury
Q21856809 Q22073388 Q26318263 Q26706171 Q5712848 Q18688281 Q22677763 Q27087718 Q22670323 Q26317896 Q315569 Q3399515 Q659396 Q26709687 Q18579186 Q22677734 Q26668969
(c(Q1792379),P180,c(Q82799)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P180
type Q1792379
type Q82799
action find_tuple_counts
relation P180
type Q1792379
type Q502895
action count
action filter_multi_types
action find
entity Q22677825
relation P180
type Q82799
type Q502895
[ANSWERS]
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q82799'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?t ) WHERE { { ?n property:P180 ?o . ?n rdf:type ontology:Q1792379 . ?o rdf:type ontology:Q82799 } UNION { ?n property:P180 ?o . ?n rdf:type ontology:Q1792379 . ?o rdf:type ontology:Q502895 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q22677825 property:P180 ?v . { VALUES ( ?d ) { ( ontology:Q82799 ) ( ontology:Q502895 ) } . ?v rdf:type ?d } } } . FILTER ( ?t > ?s ) }
Selim Palmgren Henry M. Jackson Bust of Edward VII Sir Austen Henry Layard Self-Portrait with Monkey Portrait of A.S.Pushkin Statue of Risto Ryti Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval JUHANA III - The king of Sweden 1568-1592 -relief Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury Karl Marx Monument equestrian portrait equestrian statue Antoine Coypel Petrus Franciscus Greive (1811-1872) Statue of Duke John Bust Of Sir Joseph Paxton At Crystal Palace Park
Self-Portrait with Monkey Portrait of A.S.Pushkin Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury
action greater
action union
action find_tuple_counts
relation depicts
type art genre
type name
action find_tuple_counts
relation depicts
type art genre
type common name
action count
action filter_multi_types
action find
entity Maire-sculpture
relation depicts
type name
type common name
[{'concept': 'art genre'}, 'depicts', [{'concept': 'name'}, {'concept': 'common name'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?t ) WHERE { { ?n property:depicts ?o . ?n rdf:type ontology:art_genre . ?o rdf:type ontology:name } UNION { ?n property:depicts ?o . ?n rdf:type ontology:art_genre . ?o rdf:type ontology:common_name } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Maire-sculpture property:depicts ?v . { VALUES ( ?d ) { ( ontology:name ) ( ontology:common_name ) } . ?v rdf:type ?d } } } . FILTER ( ?t > ?s ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5712848
P17
Q15617994
USER
Which administrative territory does that art genre belong to ?
(Q5712848,P17,c(Q15617994))
action filter_type
action find
entity Q5712848
relation P17
type Q15617994
['Q5712848', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q5712848 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Self-Portrait with Monkey
action filter_type
action find
entity Self-Portrait with Monkey
relation country
type designation for an administrative territorial entity
['Self-Portrait with Monkey', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Self-Portrait_with_Monkey property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q26317896
SYSTEM
Did you mean Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury ?
Q5712848 Q18688281 Q26317896
(Q5712848,P17,c(Q15617994)) (Q18688281,P17,c(Q15617994)) (Q26317896,P17,c(Q15617994))
[ANSWER]
['Q5712848', 'P17', {'concept': 'Q15617994'}] ['Q18688281', 'P17', {'concept': 'Q15617994'}] ['Q26317896', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q5712848 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Self-Portrait with Monkey Portrait of A.S.Pushkin Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury
Did you mean Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury ?
Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury
['Self-Portrait with Monkey', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Portrait of A.S.Pushkin', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Self-Portrait_with_Monkey property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Self-Portrait with Monkey. Could you tell me the answer for that?
(Q5712848,P17,c(Q15617994))
Q5712848
['Q5712848', 'P17', {'concept': 'Q15617994'}]
['Self-Portrait with Monkey', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q5712848,P17,c(Q15617994))
action filter_type
action find
entity Q5712848
relation P17
type Q15617994
That art genre belongs to the [ANSWER]
['Q5712848', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q5712848 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
United States of America
That art genre belongs to the United States of America
United States of America
action filter_type
action find
entity Self-Portrait with Monkey
relation country
type designation for an administrative territorial entity
['Self-Portrait with Monkey', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Self-Portrait_with_Monkey property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q11806
P6
Q502895
USER
Does that administrative territory serve as the head of government for John Adams ?
(Q30,P6,Q11806)
action is_in
entity Q11806
action find
entity Q30
relation P6
['Q30', 'P6', 'Q11806']
ASK WHERE { resource:Q30 property:P6 resource:Q11806 }
United States of America John Adams
action is_in
entity John Adams
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'John Adams']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:John_Adams }
[]
common name
SYSTEM
YES
(Q30,P6,Q11806)
action is_in
entity Q11806
action find
entity Q30
relation P6
[ANSWER]
['Q30', 'P6', 'Q11806']
ASK WHERE { resource:Q30 property:P6 resource:Q11806 }
Yes
action is_in
entity John Adams
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'John Adams']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:John_Adams }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P937
Q1914636 Q151885
USER
How many activities or concepts have United States of America as their work location ?
(c(Q1914636),P937,Q30) (c(Q151885),P937,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P937
type Q1914636
action filter_type
action find_reverse
entity Q30
relation P937
type Q151885
[{'concept': 'Q1914636'}, 'P937', 'Q30'] [{'concept': 'Q151885'}, 'P937', 'Q30']
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { ?d property:P937 resource:Q30 . ?d rdf:type ontology:Q1914636 } UNION { ?d property:P937 resource:Q30 . ?d rdf:type ontology:Q151885 } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation work location
type activity
action filter_type
action find_reverse
entity United States of America
relation work location
type concept
[{'concept': 'activity'}, 'work location', 'United States of America'] [{'concept': 'concept'}, 'work location', 'United States of America']
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { ?d property:work_location resource:United_States_of_America . ?d rdf:type ontology:activity } UNION { ?d property:work_location resource:United_States_of_America . ?d rdf:type ontology:concept } }
[]
activity concept
SYSTEM
2
Q25931035 Q276879
(c(Q1914636),P937,Q30) (c(Q151885),P937,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P937
type Q1914636
action filter_type
action find_reverse
entity Q30
relation P937
type Q151885
[ANSWER]
[{'concept': 'Q1914636'}, 'P937', 'Q30'] [{'concept': 'Q151885'}, 'P937', 'Q30']
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { ?d property:P937 resource:Q30 . ?d rdf:type ontology:Q1914636 } UNION { ?d property:P937 resource:Q30 . ?d rdf:type ontology:Q151885 } }
Bernie or Bust Korean American
2
action count
action union
action filter_type
action find_reverse
entity United States of America
relation work location
type activity
action filter_type
action find_reverse
entity United States of America
relation work location
type concept
[{'concept': 'activity'}, 'work location', 'United States of America'] [{'concept': 'concept'}, 'work location', 'United States of America']
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { ?d property:work_location resource:United_States_of_America . ?d rdf:type ontology:activity } UNION { ?d property:work_location resource:United_States_of_America . ?d rdf:type ontology:concept } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q18353841
P180
Q712378 Q811430 Q1792379
USER
How many art genres depict lesser number of organs or constructions than Architectural painting ?
(c(Q1792379),P180,c(Q712378)|c(Q811430))
action count
action less
action union
action find_tuple_counts
relation P180
type Q1792379
type Q712378
action find_tuple_counts
relation P180
type Q1792379
type Q811430
action count
action filter_multi_types
action find
entity Q18353841
relation P180
type Q712378
type Q811430
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q712378'}, {'concept': 'Q811430'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:Q712378 ) ( ontology:Q811430 ) } . ?l rdf:type ?m } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:Q712378 ) ( ontology:Q811430 ) } } . resource:Q18353841 property:P180 ?j } } . FILTER ( ?s < ?t ) }
Architectural painting
action count
action less
action union
action find_tuple_counts
relation depicts
type art genre
type organ
action find_tuple_counts
relation depicts
type art genre
type construction
action count
action filter_multi_types
action find
entity Architectural painting
relation depicts
type organ
type construction
[{'concept': 'art genre'}, 'depicts', [{'concept': 'organ'}, {'concept': 'construction'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:organ ) ( ontology:construction ) } . ?l rdf:type ?m } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:organ ) ( ontology:construction ) } } . resource:Architectural_painting property:depicts ?j } } . FILTER ( ?s < ?t ) }
[]
organ construction art genre
SYSTEM
50
Q21856809 Q26267230 Q1189907 Q22677514 Q3362398 Q2963437 Q18661427 Q22073388 Q26318263 Q4668641 Q22670282 Q2302151 Q5883078 Q3687196 Q22915045 Q26706171 Q26928600 Q5712848 Q3900659 Q742530 Q18688281 Q742333 Q937330 Q3374376 Q1615638 Q22677763 Q22677825 Q6944995 Q248726 Q27087718 Q3207118 Q22670323 Q26317896 Q214127 Q315569 Q1353984 Q3399515 Q158607 Q659396 Q18559971 Q18917896 Q26709687 Q22575803 Q1339864 Q2415378 Q191163 Q18579186 Q5448026 Q22677734 Q26668969
(c(Q1792379),P180,c(Q712378)|c(Q811430))
action count
action less
action union
action find_tuple_counts
relation P180
type Q1792379
type Q712378
action find_tuple_counts
relation P180
type Q1792379
type Q811430
action count
action filter_multi_types
action find
entity Q18353841
relation P180
type Q712378
type Q811430
[ANSWER]
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q712378'}, {'concept': 'Q811430'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:Q712378 ) ( ontology:Q811430 ) } . ?l rdf:type ?m } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:Q712378 ) ( ontology:Q811430 ) } } . resource:Q18353841 property:P180 ?j } } . FILTER ( ?s < ?t ) }
Selim Palmgren Portrait of a king of marksmen (presumably Jacobus Albertus de Backer) Water Lilies Market place parliament Panorama du Caire One Thousand Pictures of the Ocean (Chie no umi) Memorial of the people of Pori Henry M. Jackson Bust of Edward VII Above and Below Crying girl animal painting Hollywood novel Christ's Charge to Peter Zinc sculptures of the Pori town hall Sir Austen Henry Layard Existentialist literature Self-Portrait with Monkey The Miraculous Draught of Fishes idyll Portrait of A.S.Pushkin history painting kouros mythological painting submarine films Statue of Risto Ryti Maire-sculpture My Bed Venus figurine Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval The Ring of Fire JUHANA III - The king of Sweden 1568-1592 -relief Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury genre painting Karl Marx Monument landscape photography equestrian portrait marine art equestrian statue Rock art at Åbodsjön history sculpture Antoine Coypel Going swimming, from the theme mother and child sports film schutterstuk landscape art Petrus Franciscus Greive (1811-1872) figure painting Statue of Duke John Bust Of Sir Joseph Paxton At Crystal Palace Park
50
action count
action less
action union
action find_tuple_counts
relation depicts
type art genre
type organ
action find_tuple_counts
relation depicts
type art genre
type construction
action count
action filter_multi_types
action find
entity Architectural painting
relation depicts
type organ
type construction
[{'concept': 'art genre'}, 'depicts', [{'concept': 'organ'}, {'concept': 'construction'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?s ) WHERE { VALUES ( ?m ) { ( ontology:organ ) ( ontology:construction ) } . ?l rdf:type ?m } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?t ) WHERE { { ?j rdf:type ?n . VALUES ( ?n ) { ( ontology:organ ) ( ontology:construction ) } } . resource:Architectural_painting property:depicts ?j } } . FILTER ( ?s < ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q12303833
P180
Q712378 Q811430 Q1792379
USER
And how about floral painting?
(c(Q1792379),P180,c(Q712378)|c(Q811430))
action count
action less
action union
action find_tuple_counts
relation P180
type Q1792379
type Q712378
action find_tuple_counts
relation P180
type Q1792379
type Q811430
action count
action filter_multi_types
action find
entity Q12303833
relation P180
type Q712378
type Q811430
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q712378'}, {'concept': 'Q811430'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q12303833 property:P180 ?n . { ?n rdf:type ?j . VALUES ( ?j ) { ( ontology:Q712378 ) ( ontology:Q811430 ) } } } } . FILTER ( ?d < ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?d ) WHERE { { ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q712378 . ?z property:P180 ?y } UNION { ?z property:P180 ?y . ?y rdf:type ontology:Q811430 . ?z rdf:type ontology:Q1792379 } } GROUP BY ?z } }
floral painting
action count
action less
action union
action find_tuple_counts
relation depicts
type art genre
type organ
action find_tuple_counts
relation depicts
type art genre
type construction
action count
action filter_multi_types
action find
entity floral painting
relation depicts
type organ
type construction
[{'concept': 'art genre'}, 'depicts', [{'concept': 'organ'}, {'concept': 'construction'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:floral_painting property:depicts ?n . { ?n rdf:type ?j . VALUES ( ?j ) { ( ontology:organ ) ( ontology:construction ) } } } } . FILTER ( ?d < ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?d ) WHERE { { ?z rdf:type ontology:art_genre . ?y rdf:type ontology:organ . ?z property:depicts ?y } UNION { ?z property:depicts ?y . ?y rdf:type ontology:construction . ?z rdf:type ontology:art_genre } } GROUP BY ?z } }
[]
organ construction art genre
SYSTEM
50
Q21856809 Q26267230 Q1189907 Q22677514 Q3362398 Q2963437 Q18661427 Q22073388 Q26318263 Q4668641 Q22670282 Q2302151 Q5883078 Q3687196 Q22915045 Q26706171 Q26928600 Q5712848 Q3900659 Q742530 Q18688281 Q742333 Q937330 Q3374376 Q1615638 Q22677763 Q22677825 Q6944995 Q248726 Q27087718 Q3207118 Q22670323 Q26317896 Q214127 Q315569 Q1353984 Q3399515 Q158607 Q659396 Q18559971 Q18917896 Q26709687 Q22575803 Q1339864 Q2415378 Q191163 Q18579186 Q5448026 Q22677734 Q26668969
(c(Q1792379),P180,c(Q712378)|c(Q811430))
action count
action less
action union
action find_tuple_counts
relation P180
type Q1792379
type Q712378
action find_tuple_counts
relation P180
type Q1792379
type Q811430
action count
action filter_multi_types
action find
entity Q12303833
relation P180
type Q712378
type Q811430
[ANSWER]
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q712378'}, {'concept': 'Q811430'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:Q12303833 property:P180 ?n . { ?n rdf:type ?j . VALUES ( ?j ) { ( ontology:Q712378 ) ( ontology:Q811430 ) } } } } . FILTER ( ?d < ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?d ) WHERE { { ?z rdf:type ontology:Q1792379 . ?y rdf:type ontology:Q712378 . ?z property:P180 ?y } UNION { ?z property:P180 ?y . ?y rdf:type ontology:Q811430 . ?z rdf:type ontology:Q1792379 } } GROUP BY ?z } }
Selim Palmgren Portrait of a king of marksmen (presumably Jacobus Albertus de Backer) Water Lilies Market place parliament Panorama du Caire One Thousand Pictures of the Ocean (Chie no umi) Memorial of the people of Pori Henry M. Jackson Bust of Edward VII Above and Below Crying girl animal painting Hollywood novel Christ's Charge to Peter Zinc sculptures of the Pori town hall Sir Austen Henry Layard Existentialist literature Self-Portrait with Monkey The Miraculous Draught of Fishes idyll Portrait of A.S.Pushkin history painting kouros mythological painting submarine films Statue of Risto Ryti Maire-sculpture My Bed Venus figurine Bust Of Sir Henry Tate, Outside Tate Library, Brixton Oval The Ring of Fire JUHANA III - The king of Sweden 1568-1592 -relief Monument To John Heminge And Henry Condell In Former Churchyard Of Church Of St Mary Aldermanbury genre painting Karl Marx Monument landscape photography equestrian portrait marine art equestrian statue Rock art at Åbodsjön history sculpture Antoine Coypel Going swimming, from the theme mother and child sports film schutterstuk landscape art Petrus Franciscus Greive (1811-1872) figure painting Statue of Duke John Bust Of Sir Joseph Paxton At Crystal Palace Park
50
action count
action less
action union
action find_tuple_counts
relation depicts
type art genre
type organ
action find_tuple_counts
relation depicts
type art genre
type construction
action count
action filter_multi_types
action find
entity floral painting
relation depicts
type organ
type construction
[{'concept': 'art genre'}, 'depicts', [{'concept': 'organ'}, {'concept': 'construction'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { resource:floral_painting property:depicts ?n . { ?n rdf:type ?j . VALUES ( ?j ) { ( ontology:organ ) ( ontology:construction ) } } } } . FILTER ( ?d < ?i ) . { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?d ) WHERE { { ?z rdf:type ontology:art_genre . ?y rdf:type ontology:organ . ?z property:depicts ?y } UNION { ?z property:depicts ?y . ?y rdf:type ontology:construction . ?z rdf:type ontology:art_genre } } GROUP BY ?z } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with atmost 12 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 12
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?d ) WHERE { ?f property:P530 ?w . ?f rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?d <= 12 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?d ) WHERE { ?f property:diplomatic_relation ?w . ?f rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?d <= 12 ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 12
[ANSWERS] hold diplomatic relationship with atmost 12 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?d ) WHERE { ?f property:P530 ?w . ?f rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?d <= 12 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand hold diplomatic relationship with atmost 12 administrative territories
Denmark Austria New Zealand
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?d ) WHERE { ?f property:diplomatic_relation ?w . ?f rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?d <= 12 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q23316
P530
Q15617994
USER
Do Crevoladossola have diplomatic associations with those political territories ?
(Q23316,P530,Q35) (Q23316,P530,Q40) (Q23316,P530,Q664)
action is_in
entity prev_answer
action find
entity Q23316
relation P530
['Q23316', 'P530', 'Q35'] ['Q23316', 'P530', 'Q40'] ['Q23316', 'P530', 'Q664']
ASK WHERE { VALUES ( ?g ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q23316 property:P530 ?g }
Crevoladossola
action is_in
entity prev_answer
action find
entity Crevoladossola
relation diplomatic relation
['Crevoladossola', 'diplomatic relation', 'Denmark'] ['Crevoladossola', 'diplomatic relation', 'Austria'] ['Crevoladossola', 'diplomatic relation', 'New Zealand']
ASK WHERE { VALUES ( ?g ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Crevoladossola property:diplomatic_relation ?g }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q23316,P530,Q35) (Q23316,P530,Q40) (Q23316,P530,Q664)
action is_in
entity prev_answer
action find
entity Q23316
relation P530
[ANSWER]
['Q23316', 'P530', 'Q35'] ['Q23316', 'P530', 'Q40'] ['Q23316', 'P530', 'Q664']
ASK WHERE { VALUES ( ?g ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q23316 property:P530 ?g }
No
action is_in
entity prev_answer
action find
entity Crevoladossola
relation diplomatic relation
['Crevoladossola', 'diplomatic relation', 'Denmark'] ['Crevoladossola', 'diplomatic relation', 'Austria'] ['Crevoladossola', 'diplomatic relation', 'New Zealand']
ASK WHERE { VALUES ( ?g ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Crevoladossola property:diplomatic_relation ?g }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q35
P463
Q56061 Q874405
USER
How many administrative territories or social groups were Denmark a member of ?
(Q35,P463,c(Q56061)) (Q35,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q35
relation P463
type Q56061
action filter_type
action find
entity Q35
relation P463
type Q874405
['Q35', 'P463', {'concept': 'Q56061'}] ['Q35', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { ?y rdf:type ontology:Q56061 . resource:Q35 property:P463 ?y } UNION { resource:Q35 property:P463 ?y . ?y rdf:type ontology:Q874405 } }
Denmark
action count
action union
action filter_type
action find
entity Denmark
relation member of
type administrative territorial entity
action filter_type
action find
entity Denmark
relation member of
type social group
['Denmark', 'member of', {'concept': 'administrative territorial entity'}] ['Denmark', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { ?y rdf:type ontology:administrative_territorial_entity . resource:Denmark property:member_of ?y } UNION { resource:Denmark property:member_of ?y . ?y rdf:type ontology:social_group } }
[]
administrative territorial entity social group
SYSTEM
3
Q782942 Q458 Q8908
(Q35,P463,c(Q56061)) (Q35,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q35
relation P463
type Q56061
action filter_type
action find
entity Q35
relation P463
type Q874405
[ANSWER]
['Q35', 'P463', {'concept': 'Q56061'}] ['Q35', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { ?y rdf:type ontology:Q56061 . resource:Q35 property:P463 ?y } UNION { resource:Q35 property:P463 ?y . ?y rdf:type ontology:Q874405 } }
Australia Group European Union Council of Europe
3
action count
action union
action filter_type
action find
entity Denmark
relation member of
type administrative territorial entity
action filter_type
action find
entity Denmark
relation member of
type social group
['Denmark', 'member of', {'concept': 'administrative territorial entity'}] ['Denmark', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { ?y rdf:type ontology:administrative_territorial_entity . resource:Denmark property:member_of ?y } UNION { resource:Denmark property:member_of ?y . ?y rdf:type ontology:social_group } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with max number of political territories ?
(c(Q15617994),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?h ) { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?o ) WHERE { ?x property:P530 ?u . ?x rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?x } } . FILTER ( ?d = ?h ) . { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?d ) WHERE { ?p property:P530 ?l . ?p rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?p } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?h ) { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?o ) WHERE { ?x property:diplomatic_relation ?u . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?x } } . FILTER ( ?d = ?h ) . { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?d ) WHERE { ?p property:diplomatic_relation ?l . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?p } }
[]
political territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWER] have ambassadorial relations with max number of political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?h ) { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?o ) WHERE { ?x property:P530 ?u . ?x rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?x } } . FILTER ( ?d = ?h ) . { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?d ) WHERE { ?p property:P530 ?l . ?p rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?p } }
Georgia
Georgia have ambassadorial relations with max number of political territories
Georgia
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?h ) { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?o ) WHERE { ?x property:diplomatic_relation ?u . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?x } } . FILTER ( ?d = ?h ) . { SELECT DISTINCT ?p ( COUNT ( ?l ) AS ?d ) WHERE { ?p property:diplomatic_relation ?l . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?p } }
[]