Simple Question (Direct)
Simple Question
Q735085
P88
Q502895
USER
Who was David commissioned by ?
(Q735085,P88,c(Q502895))
action filter_type
action find
entity Q735085
relation P88
type Q502895
['Q735085', 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q735085 property:P88 ?g }
David
action filter_type
action find
entity David
relation commissioned by
type common name
['David', 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:David property:commissioned_by ?g }
[]
common name
Q48544
SYSTEM
Cosimo de' Medici
Q48544
(Q735085,P88,c(Q502895))
action filter_type
action find
entity Q735085
relation P88
type Q502895
David was commissioned by King [ANSWER]
['Q735085', 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q735085 property:P88 ?g }
Cosimo de' Medici
David was commissioned by King Cosimo de' Medici
Cosimo de' Medici
action filter_type
action find
entity David
relation commissioned by
type common name
['David', 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:David property:commissioned_by ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q735085
P136
Q483394
USER
What can be considered as category for that genre of sculpture ?
(Q48544,P136,c(Q483394))
action filter_type
action find
entity Q735085
relation P136
type Q483394
['Q48544', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?f WHERE { resource:Q735085 property:P136 ?f . ?f rdf:type ontology:Q483394 }
David
action filter_type
action find
entity David
relation genre
type genre
["Cosimo de' Medici", 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?f WHERE { resource:David property:genre ?f . ?f rdf:type ontology:genre }
[]
genre
Q40446
SYSTEM
nude
Q40446
(Q48544,P136,c(Q483394))
action filter_type
action find
entity Q735085
relation P136
type Q483394
[ANSWER] can be considered as category for that genre of sculpture
['Q48544', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?f WHERE { resource:Q735085 property:P136 ?f . ?f rdf:type ontology:Q483394 }
nude
Nude can be considered as category for that genre of sculpture
nude
action filter_type
action find
entity David
relation genre
type genre
["Cosimo de' Medici", 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?f WHERE { resource:David property:genre ?f . ?f rdf:type ontology:genre }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P136
Q483394 Q2088357
USER
How many genres do approximately the same number of musical ensembles belong to as that genre ?
(c(Q2088357),P136,c(Q483394))
action count
action approx
action find_reverse_tuple_counts
relation P136
type Q483394
type Q2088357
action count
action filter_type
action find
entity Q40446
relation P136
type Q483394
[{'concept': 'Q2088357'}, 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Q40446 property:P136 ?l . ?l rdf:type ontology:Q483394 } } . FILTER ( ?e = ?s ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:P136 ?w . ?w rdf:type ontology:Q483394 . ?j rdf:type ontology:Q2088357 } GROUP BY ?w } }
action count
action approx
action find_reverse_tuple_counts
relation genre
type genre
type musical ensemble
action count
action filter_type
action find
entity nude
relation genre
type genre
[{'concept': 'musical ensemble'}, 'genre', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:nude property:genre ?l . ?l rdf:type ontology:genre } } . FILTER ( ?e = ?s ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:genre ?w . ?w rdf:type ontology:genre . ?j rdf:type ontology:musical_ensemble } GROUP BY ?w } }
[]
genre musical ensemble
SYSTEM
267
Q2628513 Q24925 Q1339223 Q1196408 Q7318456 Q622812 Q1059863 Q603481 Q3326349 Q208189 Q846662 Q170238 Q4119870 Q1036289 Q54767 Q49084 Q16875712 Q867123 Q744038 Q1048478 Q1265717 Q1422746 Q1824338 Q182015 Q15613992 Q4419886 Q2454898 Q2632782 Q1762165 Q19842222 Q869955 Q401831 Q506858 Q1092460 Q578868 Q444835 Q858523 Q134307 Q1421557 Q5633421 Q1127717 Q19683436 Q2000136 Q859369 Q5376667 Q2049337 Q733095 Q6719091 Q19683335 Q1046788 Q19765983 Q2915437 Q1506693 Q1168168 Q3775539 Q124922 Q374313 Q3287609 Q754803 Q18809626 Q1610017 Q2281714 Q850525 Q20737414 Q1748941 Q444178 Q4209421 Q2127647 Q1684600 Q1113999 Q1303200 Q1493064 Q1823737 Q21802675 Q8253 Q142714 Q191067 Q1194240 Q1323555 Q1143132 Q11756212 Q3177937 Q2394336 Q191890 Q871232 Q343568 Q4451239 Q828322 Q1505283 Q2176159 Q15976081 Q262343 Q2762504 Q1417032 Q145806 Q21030988 Q168210 Q4740553 Q25861761 Q472055 Q4506063 Q4282636 Q1551015 Q868217 Q482919 Q3320548 Q7548531 Q185029 Q2313710 Q914229 Q749749 Q192110 Q16743958 Q637866 Q975060 Q6290007 Q2740415 Q1078913 Q15635954 Q191489 Q751424 Q1857766 Q737498 Q1502032 Q16950433 Q23916 Q1163960 Q53094 Q1142825 Q7551387 Q15286013 Q2561390 Q7643432 Q4375640 Q2839016 Q4164344 Q128115 Q939654 Q58199 Q1150710 Q185905 Q15733887 Q212431 Q2070892 Q108874 Q241045 Q27217074 Q787180 Q860750 Q128758 Q193979 Q17628188 Q1143118 Q2123557 Q24205322 Q1196556 Q19547247 Q467880 Q756230 Q20655994 Q846224 Q16575965 Q4879416 Q3402519 Q11590806 Q3064465 Q9397629 Q7089173 Q21010853 Q267628 Q1198141 Q3177897 Q40446 Q1622217 Q572916 Q1591288 Q1080071 Q1368848 Q1635956 Q4304915 Q3077939 Q2083647 Q175173 Q1033640 Q11080558 Q1474463 Q213051 Q383898 Q333967 Q1137896 Q291 Q7832342 Q1224999 Q1044646 Q18809572 Q1044478 Q2502127 Q3139142 Q862490 Q122207 Q616973 Q3330467 Q213156 Q156035 Q181001 Q3739535 Q221181 Q627603 Q603555 Q557141 Q3267592 Q860372 Q1499199 Q678649 Q1376252 Q689445 Q21997246 Q743934 Q2635894 Q59126 Q1484397 Q1128018 Q821157 Q584105 Q995600 Q650483 Q231443 Q2125867 Q223393 Q1189206 Q380266 Q5287667 Q2991560 Q1529437 Q622370 Q1199309 Q1892535 Q3965952 Q588289 Q1050023 Q1143087 Q7632212 Q594150 Q9134 Q536420 Q5401282 Q27670585 Q2746731 Q22925400 Q17516 Q21590660 Q4241184 Q531067 Q172067 Q30849 Q11298147 Q23653 Q270948 Q1501543 Q192851 Q5240628 Q4736499 Q516583 Q3377903 Q18822231 Q1260861 Q26263265
(c(Q2088357),P136,c(Q483394))
action count
action approx
action find_reverse_tuple_counts
relation P136
type Q483394
type Q2088357
action count
action filter_type
action find
entity Q40446
relation P136
type Q483394
[ANSWER]
[{'concept': 'Q2088357'}, 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:Q40446 property:P136 ?l . ?l rdf:type ontology:Q483394 } } . FILTER ( ?e = ?s ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:P136 ?w . ?w rdf:type ontology:Q483394 . ?j rdf:type ontology:Q2088357 } GROUP BY ?w } }
graphic adventure game science fiction dating sim historical fiction revisionism talk show women's magazine combat flight simulator lyric real-time strategy game show situation comedy academic work construction and management simulation puzzle video game short story animal art open world role-playing video game Shunga dungeon crawl action role-playing game music magazine thriller arcade video game mech simulator wargame rhythm game action crime fiction fictional crossover beat 'em up photojournalism surreal humour vehicle simulation game virtual world stealth game portrait light art scientific journal investigative journalism truck simulator softcore pornography comedy-drama Endurance art panel game vanitas MUSH ship simulator eroge romantic fiction fantasy art Serious game Erotic art government simulation game reportage gonzo journalism Commercial art wuxia full-length portrait simulation video game side-scrolling video game historiographic metafiction philosophical fiction radio comedy court show observational comedy rail shooter news magazine German television comedy customer magazine human-based computation game text-based game adventure fiction fiction card game article science fiction genre Bishōjo game roguelike physics game historic game interactive art Commedia dell'arte editorial action-adventure game Tank simulation platform game science journalism turn-based strategy Rail shooter assemblage Indie game sim racing stand-up comedy survival game Internet forum amateur flight simulation virtual petting simulator strategy video game science fiction radio programme shooter game group portrait sports video game caricature religious art Snowboarding video game first-person shooter real-time tactics advice column Non-game self-portrait genre of painting book review massively multiplayer online first-person shooter game space simulator site-specific art plastic arts Cli fi melodrama MUD current affairs academic journal generative art comedy thriller adventure game hack and slash black comedy How-to Social simulation game comedy manga and animation comic novel superhero fiction turn-based tactics allegory documentary abstract art conversation piece instant messaging strategy game ukiyo-e Vaporwave installation art vehicular combat game happening bust mystery novel environmental art racing video game satire farce cróniques interactive fiction quiz show catafalque portrait hypertext fiction family portrait programming game directory service social videogame fighting game horror fiction bedroom farce computer magazine point-and-click adventure heroic nudity fashion magazine Olympic video games drama column business simulation game puzzle game nude figurative art found object music journalism submarine simulator literary magazine interactive film motocycle simulator Kappazuri funerary art massively multiplayer online role-playing game love comedy Gourmet radio opera non-fiction military art survival horror tower defense pornography traditional game educational video game New Journalism half-length portrait shoot 'em up didacticism grand strategy wargame massively multiplayer online game artillery game Yakusha-e narrative art performance art opinion journalism erotica art game train simulator cartoon 4X public art automobile magazine digital art Gekiga body art Internet pornography visual novel adult manga sketch comedy audio drama xiaoshuo talent show pastiche bullet hell music video game popular science sports journalism yellow journalism radio documentary literary genre multiplayer online battle arena third-person shooter documentary comedy sex comedy tactical role-playing game docudrama life simulation game space flight simulator game light gun shooter city-building game Casual game massively multiplayer online real-time strategy game subterranean fiction outsider art mythology god game magazine science fiction video game parody music sport art street art Western secret history metafiction hentai blog gag anime anthology series action game wargame arcade game machine fantastic Alternative comedy shan shui Slow television time management tactical shooter Western art
267
action count
action approx
action find_reverse_tuple_counts
relation genre
type genre
type musical ensemble
action count
action filter_type
action find
entity nude
relation genre
type genre
[{'concept': 'musical ensemble'}, 'genre', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { resource:nude property:genre ?l . ?l rdf:type ontology:genre } } . FILTER ( ?e = ?s ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?e ) WHERE { ?j property:genre ?w . ?w rdf:type ontology:genre . ?j rdf:type ontology:musical_ensemble } GROUP BY ?w } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P136
Q483394 Q2088357 Q502895
USER
Which genres are the genre for min number of musical ensembles or people ?
(c(Q2088357)|c(Q502895),P136,c(Q483394))
action argmin
action union
action find_reverse_tuple_counts
relation P136
type Q483394
type Q2088357
action find_reverse_tuple_counts
relation P136
type Q483394
type Q502895
[[{'concept': 'Q2088357'}, {'concept': 'Q502895'}], 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?i ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?u ) { ( ontology:Q2088357 ) ( ontology:Q502895 ) } . ?o rdf:type ?u } GROUP BY ?j } } . { SELECT DISTINCT ?v ( COUNT ( ?a ) AS ?k ) WHERE { { ?v rdf:type ontology:Q483394 . ?a rdf:type ontology:Q2088357 . ?a property:P136 ?v } UNION { ?a property:P136 ?v . ?v rdf:type ontology:Q483394 . ?a rdf:type ontology:Q502895 } } GROUP BY ?v } . FILTER ( ?k = ?i ) }
action argmin
action union
action find_reverse_tuple_counts
relation genre
type genre
type musical ensemble
action find_reverse_tuple_counts
relation genre
type genre
type common name
[[{'concept': 'musical ensemble'}, {'concept': 'common name'}], 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?i ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?u ) { ( ontology:musical_ensemble ) ( ontology:common_name ) } . ?o rdf:type ?u } GROUP BY ?j } } . { SELECT DISTINCT ?v ( COUNT ( ?a ) AS ?k ) WHERE { { ?v rdf:type ontology:genre . ?a rdf:type ontology:musical_ensemble . ?a property:genre ?v } UNION { ?a property:genre ?v . ?v rdf:type ontology:genre . ?a rdf:type ontology:common_name } } GROUP BY ?v } . FILTER ( ?k = ?i ) }
[]
genre musical ensemble common name
Q1824338 Q15733887 Q754803
SYSTEM
music magazine, Vaporwave, wuxia
Q2628513 Q1339223 Q7318456 Q622812 Q1059863 Q603481 Q208189 Q846662 Q170238 Q4119870 Q1036289 Q867123 Q744038 Q1048478 Q1265717 Q1422746 Q1824338 Q15613992 Q4419886 Q2454898 Q2632782 Q401831 Q506858 Q578868 Q444835 Q858523 Q5633421 Q19683436 Q2000136 Q2049337 Q733095 Q6719091 Q19683335 Q1046788 Q19765983 Q2915437 Q1506693 Q1168168 Q3775539 Q754803 Q18809626 Q1610017 Q2281714 Q850525 Q20737414 Q1748941 Q444178 Q2127647 Q1684600 Q1113999 Q1303200 Q1493064 Q1823737 Q21802675 Q142714 Q1194240 Q1143132 Q11756212 Q3177937 Q191890 Q871232 Q343568 Q4451239 Q828322 Q1505283 Q2176159 Q15976081 Q262343 Q2762504 Q1417032 Q21030988 Q168210 Q4740553 Q25861761 Q472055 Q4506063 Q4282636 Q1551015 Q868217 Q482919 Q7548531 Q185029 Q2313710 Q914229 Q749749 Q637866 Q975060 Q6290007 Q2740415 Q15635954 Q751424 Q1857766 Q737498 Q1502032 Q16950433 Q23916 Q1163960 Q1142825 Q7551387 Q15286013 Q2561390 Q7643432 Q4375640 Q939654 Q58199 Q1150710 Q185905 Q15733887 Q2070892 Q241045 Q27217074 Q787180 Q860750 Q17628188 Q1143118 Q2123557 Q24205322 Q1196556 Q19547247 Q467880 Q756230 Q20655994 Q846224 Q4879416 Q3402519 Q11590806 Q3064465 Q9397629 Q7089173 Q267628 Q1198141 Q3177897 Q572916 Q1591288 Q1080071 Q1368848 Q1635956 Q4304915 Q2083647 Q175173 Q11080558 Q1474463 Q333967 Q1137896 Q7832342 Q1224999 Q1044646 Q18809572 Q1044478 Q3139142 Q862490 Q122207 Q616973 Q221181 Q603555 Q557141 Q3267592 Q1376252 Q689445 Q59126 Q1484397 Q1128018 Q821157 Q584105 Q650483 Q231443 Q2125867 Q223393 Q1189206 Q380266 Q5287667 Q2991560 Q1529437 Q1199309 Q1892535 Q3965952 Q588289 Q1050023 Q1143087 Q7632212 Q9134 Q536420 Q5401282 Q27670585 Q22925400 Q4241184 Q531067 Q172067 Q11298147 Q23653 Q270948 Q1501543 Q192851 Q5240628 Q516583 Q3377903 Q18822231 Q1260861
(c(Q2088357)|c(Q502895),P136,c(Q483394))
action argmin
action union
action find_reverse_tuple_counts
relation P136
type Q483394
type Q2088357
action find_reverse_tuple_counts
relation P136
type Q483394
type Q502895
[ANSWERS] are the genre for min number of musical ensembles or people
[[{'concept': 'Q2088357'}, {'concept': 'Q502895'}], 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?i ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?u ) { ( ontology:Q2088357 ) ( ontology:Q502895 ) } . ?o rdf:type ?u } GROUP BY ?j } } . { SELECT DISTINCT ?v ( COUNT ( ?a ) AS ?k ) WHERE { { ?v rdf:type ontology:Q483394 . ?a rdf:type ontology:Q2088357 . ?a property:P136 ?v } UNION { ?a property:P136 ?v . ?v rdf:type ontology:Q483394 . ?a rdf:type ontology:Q502895 } } GROUP BY ?v } . FILTER ( ?k = ?i ) }
graphic adventure game dating sim revisionism talk show women's magazine combat flight simulator real-time strategy game show situation comedy academic work construction and management simulation open world role-playing video game Shunga dungeon crawl action role-playing game music magazine arcade video game mech simulator wargame rhythm game beat 'em up photojournalism vehicle simulation game virtual world stealth game scientific journal truck simulator softcore pornography panel game vanitas MUSH ship simulator eroge romantic fiction fantasy art Serious game Erotic art government simulation game wuxia full-length portrait simulation video game side-scrolling video game historiographic metafiction philosophical fiction radio comedy court show rail shooter news magazine German television comedy customer magazine human-based computation game text-based game adventure fiction card game science fiction genre roguelike physics game historic game Commedia dell'arte editorial action-adventure game Tank simulation platform game science journalism turn-based strategy Rail shooter assemblage Indie game sim racing survival game Internet forum amateur flight simulation virtual petting simulator strategy video game science fiction radio programme shooter game group portrait sports video game caricature Snowboarding video game first-person shooter real-time tactics advice column Non-game book review massively multiplayer online first-person shooter game space simulator site-specific art Cli fi MUD current affairs academic journal generative art comedy thriller adventure game hack and slash How-to Social simulation game comedy manga and animation comic novel superhero fiction turn-based tactics conversation piece instant messaging strategy game ukiyo-e Vaporwave vehicular combat game bust mystery novel environmental art racing video game cróniques interactive fiction quiz show catafalque portrait hypertext fiction family portrait programming game directory service social videogame fighting game bedroom farce computer magazine point-and-click adventure heroic nudity fashion magazine Olympic video games column business simulation game puzzle game found object music journalism submarine simulator literary magazine interactive film motocycle simulator funerary art massively multiplayer online role-playing game Gourmet radio opera survival horror tower defense traditional game educational video game New Journalism half-length portrait shoot 'em up grand strategy wargame massively multiplayer online game artillery game Yakusha-e train simulator 4X public art automobile magazine Internet pornography visual novel xiaoshuo talent show pastiche bullet hell music video game sports journalism yellow journalism radio documentary literary genre multiplayer online battle arena third-person shooter documentary comedy sex comedy tactical role-playing game life simulation game space flight simulator game light gun shooter city-building game Casual game massively multiplayer online real-time strategy game subterranean fiction mythology god game magazine science fiction video game sport art secret history metafiction hentai gag anime anthology series action game wargame arcade game machine fantastic shan shui Slow television time management tactical shooter
Music magazine, Vaporwave and wuxia are the genre for min number of musical ensembles or people
music magazine Vaporwave wuxia
action argmin
action union
action find_reverse_tuple_counts
relation genre
type genre
type musical ensemble
action find_reverse_tuple_counts
relation genre
type genre
type common name
[[{'concept': 'musical ensemble'}, {'concept': 'common name'}], 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?i ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?u ) { ( ontology:musical_ensemble ) ( ontology:common_name ) } . ?o rdf:type ?u } GROUP BY ?j } } . { SELECT DISTINCT ?v ( COUNT ( ?a ) AS ?k ) WHERE { { ?v rdf:type ontology:genre . ?a rdf:type ontology:musical_ensemble . ?a property:genre ?v } UNION { ?a property:genre ?v . ?v rdf:type ontology:genre . ?a rdf:type ontology:common_name } } GROUP BY ?v } . FILTER ( ?k = ?i ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q754803
P101
Q502895
USER
Who works in the domain of that genre ?
(c(Q502895),P101,Q754803)
action filter_type
action find_reverse
entity Q754803
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q754803']
SELECT DISTINCT ?c WHERE { ?c property:P101 resource:Q754803 . ?c rdf:type ontology:Q502895 }
wuxia
action filter_type
action find_reverse
entity wuxia
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'wuxia']
SELECT DISTINCT ?c WHERE { ?c property:field_of_work resource:wuxia . ?c rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1824338
SYSTEM
Did you mean music magazine ?
Q1824338 Q15733887 Q754803
(c(Q502895),P101,Q1824338) (c(Q502895),P101,Q15733887) (c(Q502895),P101,Q754803)
[ANSWER]
[{'concept': 'Q502895'}, 'P101', 'Q1824338'] [{'concept': 'Q502895'}, 'P101', 'Q15733887'] [{'concept': 'Q502895'}, 'P101', 'Q754803']
SELECT DISTINCT ?c WHERE { ?c property:P101 resource:Q754803 . ?c rdf:type ontology:Q502895 }
music magazine Vaporwave wuxia
Did you mean music magazine ?
music magazine
[{'concept': 'common name'}, 'field of work', 'music magazine'] [{'concept': 'common name'}, 'field of work', 'Vaporwave'] [{'concept': 'common name'}, 'field of work', 'wuxia']
SELECT DISTINCT ?c WHERE { ?c property:field_of_work resource:wuxia . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant wuxia. Could you tell me the answer for that?
(c(Q502895),P101,Q754803)
Q754803
[{'concept': 'Q502895'}, 'P101', 'Q754803']
[{'concept': 'common name'}, 'field of work', 'wuxia']
[]
Q709435
SYSTEM
Gu Long
Q709435
(c(Q502895),P101,Q754803)
action filter_type
action find_reverse
entity Q754803
relation P101
type Q502895
[ANSWER] works in the domain of that genre
[{'concept': 'Q502895'}, 'P101', 'Q754803']
SELECT DISTINCT ?c WHERE { ?c property:P101 resource:Q754803 . ?c rdf:type ontology:Q502895 }
Gu Long
Gu Long works in the domain of that genre
Gu Long
action filter_type
action find_reverse
entity wuxia
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'wuxia']
SELECT DISTINCT ?c WHERE { ?c property:field_of_work resource:wuxia . ?c rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q735085
P800
Q502895
USER
Who has David as their notable work ?
(c(Q502895),P800,Q735085)
action filter_type
action find_reverse
entity Q735085
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q735085']
SELECT DISTINCT ?p WHERE { ?p property:P800 resource:Q735085 . ?p rdf:type ontology:Q502895 }
David
action filter_type
action find_reverse
entity David
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'David']
SELECT DISTINCT ?p WHERE { ?p property:notable_work resource:David . ?p rdf:type ontology:common_name }
[]
common name
Q37562
SYSTEM
Donatello
Q37562
(c(Q502895),P800,Q735085)
action filter_type
action find_reverse
entity Q735085
relation P800
type Q502895
David [ANSWER] has David as their notable work
[{'concept': 'Q502895'}, 'P800', 'Q735085']
SELECT DISTINCT ?p WHERE { ?p property:P800 resource:Q735085 . ?p rdf:type ontology:Q502895 }
Donatello
David Donatello has David as their notable work
Donatello
action filter_type
action find_reverse
entity David
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'David']
SELECT DISTINCT ?p WHERE { ?p property:notable_work resource:David . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q48544
P734
Q82799
USER
Who is associated with Cosimo de' Medici ?
(Q48544,P734,c(Q82799))
action filter_type
action find
entity Q48544
relation P734
type Q82799
['Q48544', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q48544 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Cosimo de' Medici
action filter_type
action find
entity Cosimo de' Medici
relation family name
type name
["Cosimo de' Medici", 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Cosimo_de'_Medici property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q23039018
SYSTEM
Medici
Q23039018
(Q48544,P734,c(Q82799))
action filter_type
action find
entity Q48544
relation P734
type Q82799
[ANSWER] is associated with Cosimo de' [ANSWER]
['Q48544', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q48544 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Medici
Medici is associated with Cosimo de' Medici
Medici
action filter_type
action find
entity Cosimo de' Medici
relation family name
type name
["Cosimo de' Medici", 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Cosimo_de'_Medici property:family_name ?n . ?n rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16161817
Q82799
USER
And how about Lars Bergman?
(Q16161817,P734,c(Q82799))
action filter_type
action find
entity Q16161817
relation P734
type Q82799
['Q16161817', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q16161817 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Lars Bergman
action filter_type
action find
entity Lars Bergman
relation family name
type name
['Lars Bergman', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Lars_Bergman property:family_name ?z . ?z rdf:type ontology:name }
[]
name
Q21489110
SYSTEM
Bergman
Q21489110
(Q16161817,P734,c(Q82799))
action filter_type
action find
entity Q16161817
relation P734
type Q82799
[ANSWER]
['Q16161817', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?z WHERE { resource:Q16161817 property:P734 ?z . ?z rdf:type ontology:Q82799 }
Bergman
Bergman
action filter_type
action find
entity Lars Bergman
relation family name
type name
['Lars Bergman', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?z WHERE { resource:Lars_Bergman property:family_name ?z . ?z rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q21489110 Q16337475
P734
Q502895
USER
Does Flávio de Souza have that name as surname ?
(Q16337475,P734,Q21489110)
action is_in
entity Q16337475
action find
entity Q21489110
relation P734
['Q16337475', 'P734', 'Q21489110']
ASK WHERE { resource:Q21489110 property:P734 resource:Q16337475 }
Bergman Flávio de Souza
action is_in
entity Flávio de Souza
action find
entity Bergman
relation family name
['Flávio de Souza', 'family name', 'Bergman']
ASK WHERE { resource:Bergman property:family_name resource:Flávio_de_Souza }
[]
common name
SYSTEM
NO
(Q16337475,P734,Q21489110)
action is_in
entity Q16337475
action find
entity Q21489110
relation P734
[ANSWER]
['Q16337475', 'P734', 'Q21489110']
ASK WHERE { resource:Q21489110 property:P734 resource:Q16337475 }
No
action is_in
entity Flávio de Souza
action find
entity Bergman
relation family name
['Flávio de Souza', 'family name', 'Bergman']
ASK WHERE { resource:Bergman property:family_name resource:Flávio_de_Souza }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q865 Q754803
P136 P495
Q15416
USER
Which television programs have wuxia as their type and originated in Taiwan ?
AND((c(Q15416),P136,Q754803), (c(Q15416),P495,Q865))
action filter_type
action intersection
action find_reverse
entity Q754803
relation P136
action find_reverse
entity Q865
relation P495
type Q15416
{'AND': [[{'concept': 'Q15416'}, 'P136', 'Q754803'], [{'concept': 'Q15416'}, 'P495', 'Q865']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15416 . ?k property:P136 resource:Q754803 . ?k property:P495 resource:Q865 }
Taiwan wuxia
action filter_type
action intersection
action find_reverse
entity wuxia
relation genre
action find_reverse
entity Taiwan
relation country of origin
type television program
{'AND': [[{'concept': 'television program'}, 'genre', 'wuxia'], [{'concept': 'television program'}, 'country of origin', 'Taiwan']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:television_program . ?k property:genre resource:wuxia . ?k property:country_of_origin resource:Taiwan }
[]
television program
Q7734589 Q7746814 Q7077582 Q7739262 Q7739264 Q7746866 Q7760440 Q7603734 Q7719179 Q7731188
SYSTEM
The Flying Fox of Snowy Mountain, The Legend of the Condor Heroes, Ode to Gallantry, The Heaven Sword and Dragon Saber, The Heaven Sword and Dragon Saber, The Legendary Siblings, The Return of the Condor Heroes, State of Divinity, The Book and the Sword, The Duke of Mount Deer
Q7734589 Q7746814 Q7077582 Q7739262 Q7739264 Q7746866 Q7760440 Q7603734 Q7719179 Q7731188
AND((c(Q15416),P136,Q754803), (c(Q15416),P495,Q865))
action filter_type
action intersection
action find_reverse
entity Q754803
relation P136
action find_reverse
entity Q865
relation P495
type Q15416
[ANSWERS] have wuxia as their type and originated in Taiwan
{'AND': [[{'concept': 'Q15416'}, 'P136', 'Q754803'], [{'concept': 'Q15416'}, 'P495', 'Q865']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15416 . ?k property:P136 resource:Q754803 . ?k property:P495 resource:Q865 }
The Flying Fox of Snowy Mountain The Legend of the Condor Heroes Ode to Gallantry The Heaven Sword and Dragon Saber The Heaven Sword and Dragon Saber The Legendary Siblings The Return of the Condor Heroes State of Divinity The Book and the Sword The Duke of Mount Deer
The Flying Fox of Snowy Mountain, The Legend of the Condor Heroes, Ode to Gallantry, The Heaven Sword and Dragon Saber, The Heaven Sword and Dragon Saber, The Legendary Siblings, The Return of the Condor Heroes, State of Divinity, The Book and the Sword and The Duke of Mount Deer have wuxia as their type and originated in Taiwan
The Flying Fox of Snowy Mountain The Legend of the Condor Heroes Ode to Gallantry The Heaven Sword and Dragon Saber The Heaven Sword and Dragon Saber The Legendary Siblings The Return of the Condor Heroes State of Divinity The Book and the Sword The Duke of Mount Deer
action filter_type
action intersection
action find_reverse
entity wuxia
relation genre
action find_reverse
entity Taiwan
relation country of origin
type television program
{'AND': [[{'concept': 'television program'}, 'genre', 'wuxia'], [{'concept': 'television program'}, 'country of origin', 'Taiwan']]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:television_program . ?k property:genre resource:wuxia . ?k property:country_of_origin resource:Taiwan }
[]