Simple Question (Direct)
Simple Question
Q1908579
P106
Q12737077
USER
What are the job of Mathias Soiron ?
(Q1908579,P106,c(Q12737077))
action filter_type
action find
entity Q1908579
relation P106
type Q12737077
['Q1908579', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1908579 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Mathias Soiron
action filter_type
action find
entity Mathias Soiron
relation occupation
type occupation
['Mathias Soiron', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Mathias_Soiron property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q2815948 Q42973
SYSTEM
landscape architect, architect
Q2815948 Q42973
(Q1908579,P106,c(Q12737077))
action filter_type
action find
entity Q1908579
relation P106
type Q12737077
The job of Mathias Soiron are a [ANSWERS]
['Q1908579', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q1908579 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
landscape architect architect
The job of Mathias Soiron are a landscape architect and architect
landscape architect architect
action filter_type
action find
entity Mathias Soiron
relation occupation
type occupation
['Mathias Soiron', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Mathias_Soiron property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q42973
P425
Q1190554
USER
Which event has that one as the associated field of occupation ?
(Q42973,P425,c(Q1190554))
action filter_type
action find
entity Q42973
relation P425
type Q1190554
['Q42973', 'P425', {'concept': 'Q1190554'}]
SELECT DISTINCT ?n WHERE { resource:Q42973 property:P425 ?n . ?n rdf:type ontology:Q1190554 }
architect
action filter_type
action find
entity architect
relation field of this occupation
type event
['architect', 'field of this occupation', {'concept': 'event'}]
SELECT DISTINCT ?n WHERE { resource:architect property:field_of_this_occupation ?n . ?n rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q42973
SYSTEM
Did you mean architect ?
Q2815948 Q42973
(Q2815948,P425,c(Q1190554)) (Q42973,P425,c(Q1190554))
[ANSWER]
['Q2815948', 'P425', {'concept': 'Q1190554'}] ['Q42973', 'P425', {'concept': 'Q1190554'}]
SELECT DISTINCT ?n WHERE { resource:Q42973 property:P425 ?n . ?n rdf:type ontology:Q1190554 }
landscape architect architect
Did you mean architect ?
architect
['landscape architect', 'field of this occupation', {'concept': 'event'}] ['architect', 'field of this occupation', {'concept': 'event'}]
SELECT DISTINCT ?n WHERE { resource:architect property:field_of_this_occupation ?n . ?n rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
Yes
(Q42973,P425,c(Q1190554))
['Q42973', 'P425', {'concept': 'Q1190554'}]
['architect', 'field of this occupation', {'concept': 'event'}]
[]
Q385378
SYSTEM
construction
Q385378
(Q42973,P425,c(Q1190554))
action filter_type
action find
entity Q42973
relation P425
type Q1190554
[ANSWER] has that one as the associated field of occupation
['Q42973', 'P425', {'concept': 'Q1190554'}]
SELECT DISTINCT ?n WHERE { resource:Q42973 property:P425 ?n . ?n rdf:type ontology:Q1190554 }
construction
Construction has that one as the associated field of occupation
construction
action filter_type
action find
entity architect
relation field of this occupation
type event
['architect', 'field of this occupation', {'concept': 'event'}]
SELECT DISTINCT ?n WHERE { resource:architect property:field_of_this_occupation ?n . ?n rdf:type ontology:event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q2342494 Q838948
USER
How many occupations were the main subjects of exactly 1 collectables or works of art 's work ?
(c(Q2342494)|c(Q838948),P921,c(Q12737077))
action count
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?i WHERE { VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?s rdf:type ?g } GROUP BY ?i } . FILTER ( ?z = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 1
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?i WHERE { VALUES ( ?g ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?s rdf:type ?g } GROUP BY ?i } . FILTER ( ?z = 1 ) }
[]
occupation collectable work of art
SYSTEM
26
Q15637082 Q911554 Q1124183 Q36180 Q774306 Q83307 Q4610556 Q18145518 Q7358 Q82955 Q730242 Q42973 Q2961580 Q43845 Q29182 Q131524 Q205375 Q14373094 Q18220900 Q936969 Q245068 Q49757 Q2095549 Q1238570 Q2259532 Q1674312
(c(Q2342494)|c(Q838948),P921,c(Q12737077))
action count
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 1
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?i WHERE { VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?s rdf:type ?g } GROUP BY ?i } . FILTER ( ?z = 1 ) }
industrialist business magnate lumberjack writer surgeon minister model Member of the New Zealand House of Representatives clown politician test pilot architect taxi driver businessperson bishop entrepreneur inventor rugby league player Member of the South Australian House of Assembly nanny comedian poet aviator political scientist cleric rag-and-bone man
26
action count
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 1
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?i WHERE { VALUES ( ?g ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?s rdf:type ?g } GROUP BY ?i } . FILTER ( ?z = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q42973
P417
Q502895
USER
Which people are the patron saint of that occupation ?
action filter_type
action find
entity Q42973
relation P417
type Q502895
SELECT DISTINCT ?a WHERE { resource:Q42973 property:P417 ?a . ?a rdf:type ontology:Q502895 }
architect
action filter_type
action find
entity architect
relation patron saint
type common name
SELECT DISTINCT ?a WHERE { resource:architect property:patron_saint ?a . ?a rdf:type ontology:common_name }
[]
common name
Q43669 Q192816 Q44265
SYSTEM
Thomas the Apostle, Saint Barbara, Benedict of Nursia
Q43669 Q192816 Q44265
action filter_type
action find
entity Q42973
relation P417
type Q502895
[ANSWERS] are the patron saint of that occupation
SELECT DISTINCT ?a WHERE { resource:Q42973 property:P417 ?a . ?a rdf:type ontology:Q502895 }
Thomas the Apostle Saint Barbara Benedict of Nursia
Thomas the Apostle, Saint Barbara and Benedict of Nursia are the patron saint of that occupation
Thomas the Apostle Saint Barbara Benedict of Nursia
action filter_type
action find
entity architect
relation patron saint
type common name
SELECT DISTINCT ?a WHERE { resource:architect property:patron_saint ?a . ?a rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q482472
P725
Q502895 Q166142
USER
How many applications have been dubbed by around the same number of people as School Rumble ?
(c(Q166142),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q166142
type Q502895
action count
action filter_type
action find
entity Q482472
relation P725
type Q166142
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q482472 property:P725 ?o . ?o rdf:type ontology:Q166142 } } . FILTER ( ?g = ?m ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?g ) WHERE { ?i property:P725 ?j . ?i rdf:type ontology:Q166142 . ?j rdf:type ontology:Q502895 } GROUP BY ?i } }
School Rumble
action count
action approx
action find_tuple_counts
relation voice actor
type application
type common name
action count
action filter_type
action find
entity School Rumble
relation voice actor
type application
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:School_Rumble property:voice_actor ?o . ?o rdf:type ontology:application } } . FILTER ( ?g = ?m ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?g ) WHERE { ?i property:voice_actor ?j . ?i rdf:type ontology:application . ?j rdf:type ontology:common_name } GROUP BY ?i } }
[]
common name application
SYSTEM
97
Q16031150 Q5319170 Q602979 Q1371495 Q53362 Q1065670 Q8059682 Q7379808 Q3546883 Q2578717 Q7379806 Q6902732 Q15588417 Q3274352 Q1191681 Q2709892 Q3291127 Q2987460 Q1986800 Q14831173 Q166060 Q1302197 Q1141572 Q1035512 Q27863 Q2887359 Q840449 Q338486 Q538150 Q483103 Q239288 Q756856 Q14785138 Q216995 Q3823700 Q2819427 Q2525598 Q3992270 Q838707 Q1068256 Q207981 Q1154327 Q1037042 Q1207525 Q2005910 Q1801455 Q699815 Q6133492 Q847471 Q1868703 Q483120 Q2627892 Q537389 Q706638 Q482472 Q482500 Q17911588 Q1153316 Q6143593 Q170489 Q839091 Q5944170 Q484072 Q277021 Q857823 Q887421 Q3178243 Q515254 Q16547653 Q914286 Q2760871 Q1205695 Q1105802 Q3267335 Q2471350 Q746438 Q484233 Q182548 Q1347470 Q385228 Q1774415 Q1113356 Q531552 Q2457536 Q2403902 Q129277 Q4121008 Q891706 Q3866908 Q3715363 Q476230 Q239889 Q165929 Q600707 Q5968518 Q2473832 Q1075410
(c(Q166142),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q166142
type Q502895
action count
action filter_type
action find
entity Q482472
relation P725
type Q166142
[ANSWER]
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:Q482472 property:P725 ?o . ?o rdf:type ontology:Q166142 } } . FILTER ( ?g = ?m ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?g ) WHERE { ?i property:P725 ?j . ?i rdf:type ontology:Q166142 . ?j rdf:type ontology:Q502895 } GROUP BY ?i } }
Hyperdimension Neptunia PP Dynasty Warriors 8 Tokyo Majin System Shock 2 Bakemonogatari Shuffle! Ys Seven Rune Factory 4 Hourglass of Summer Star Fox Adventures Rune Factory: Tides of Destiny Monster Hunter Diary: Poka Poka Airu Village Project 575 Poyopoyo Kansatsu Nikki Battle Vixens Phantasy Star Online 2 Arc Rise Fantasia Tsuyokiss Megazone 23 Space Dandy Umineko: When They Cry Princess Lover! Miracle Girls Danganronpa: Trigger Happy Havoc Sword Art Online God Eater 2 Kenran Butohsai Street Fighter X Tekken To Love-Ru Nogizaka Haruka no Himitsu StarCraft II: Wings of Liberty Hitman: Codename 47 Kantai Collection Super Mario 64 Princess Minerva ASH: Archaic Sealed Heat Zegapain Tokimeki Memorial Online Mario Kart Wii Gakuen Utopia Manabi Straight! Code Geass XIII Hitman 2: Silent Assassin Hyperdimension Neptunia Metroid: Other M Saints Row: The Third Galaxy Angel Shippū! Iron Leaguer Full Throttle Lollipop Chainsaw Nichijou Tales of Innocence Soul Eater Future GPX Cyber Formula School Rumble Bludgeoning Angel Dokuro-Chan Saints Row: Gat out of Hell Dragon Nest Zettai Bōei Leviathan Super Mario Galaxy Lucky Star Nora to Toki no Kōbō: Kiri no Mori no Majo Granado Espada A Certain Magical Index Fate/stay night Queen's Blade Luminous Arc Record of Agarest War Zero Under Night In-Birth Street Fighter IV Sengoku Collection Akaneiro ni Somaru Saka Lagrange: The Flower of Rin-ne Luminous Arc 2 Godannar Hiiro no Kakera Dungeon Fighter Online (DFO) Date A Live 11eyes: Tsumi to Batsu to Aganai no Shōjo Spice and Wolf Final Fantasy Type-0 Atelier Meruru: The Apprentice of Arland Angel Beats! Galaxy Angel II Disgaea 4: A Promise Unforgotten Hitman: Absolution Hyperdimension Neptunia Victory Super Robot Wars UX Mugen Souls Tanken Driland Claymore Hitman: Blood Money StarCraft Hitman: Contracts Rune Factory 3: A Fantasy Harvest Moon Tantei Opera Milky Holmes Fate/Extra
97
action count
action approx
action find_tuple_counts
relation voice actor
type application
type common name
action count
action filter_type
action find
entity School Rumble
relation voice actor
type application
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) WHERE { resource:School_Rumble property:voice_actor ?o . ?o rdf:type ontology:application } } . FILTER ( ?g = ?m ) . { SELECT DISTINCT ?i ( COUNT ( ?j ) AS ?g ) WHERE { ?i property:voice_actor ?j . ?i rdf:type ontology:application . ?j rdf:type ontology:common_name } GROUP BY ?i } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q537389
P725
Q502895 Q166142
USER
And also tell me about Soul Eater?
(c(Q166142),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q166142
type Q502895
action count
action filter_type
action find
entity Q537389
relation P725
type Q166142
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?t ) WHERE { ?i property:P725 ?c . ?i rdf:type ontology:Q166142 . ?c rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Q537389 property:P725 ?u . ?u rdf:type ontology:Q166142 } } . FILTER ( ?t = ?x ) }
Soul Eater
action count
action approx
action find_tuple_counts
relation voice actor
type application
type common name
action count
action filter_type
action find
entity Soul Eater
relation voice actor
type application
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?t ) WHERE { ?i property:voice_actor ?c . ?i rdf:type ontology:application . ?c rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Soul_Eater property:voice_actor ?u . ?u rdf:type ontology:application } } . FILTER ( ?t = ?x ) }
[]
common name application
SYSTEM
99
Q16031150 Q5319170 Q602979 Q1371495 Q53362 Q1065670 Q870981 Q8059682 Q7379808 Q3546883 Q2578717 Q7379806 Q6902732 Q15588417 Q3274352 Q1191681 Q2709892 Q2061445 Q3291127 Q2987460 Q1986800 Q14831173 Q166060 Q1302197 Q1141572 Q1035512 Q27863 Q2887359 Q840449 Q338486 Q538150 Q483103 Q239288 Q756856 Q14785138 Q216995 Q3823700 Q2819427 Q2525598 Q3992270 Q838707 Q1068256 Q207981 Q1154327 Q1037042 Q1207525 Q2005910 Q1801455 Q699815 Q6133492 Q847471 Q1868703 Q483120 Q2627892 Q537389 Q706638 Q482472 Q482500 Q17911588 Q1153316 Q6143593 Q170489 Q839091 Q5944170 Q484072 Q277021 Q857823 Q887421 Q3178243 Q515254 Q16547653 Q914286 Q2760871 Q1205695 Q1105802 Q3267335 Q2471350 Q746438 Q484233 Q182548 Q1347470 Q385228 Q1774415 Q1113356 Q531552 Q2457536 Q2403902 Q129277 Q4121008 Q891706 Q3866908 Q3715363 Q476230 Q239889 Q165929 Q600707 Q5968518 Q2473832 Q1075410
(c(Q166142),P725,c(Q502895))
action count
action approx
action find_tuple_counts
relation P725
type Q166142
type Q502895
action count
action filter_type
action find
entity Q537389
relation P725
type Q166142
[ANSWER]
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?t ) WHERE { ?i property:P725 ?c . ?i rdf:type ontology:Q166142 . ?c rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Q537389 property:P725 ?u . ?u rdf:type ontology:Q166142 } } . FILTER ( ?t = ?x ) }
Hyperdimension Neptunia PP Dynasty Warriors 8 Tokyo Majin System Shock 2 Bakemonogatari Shuffle! Super Smash Bros. Ys Seven Rune Factory 4 Hourglass of Summer Star Fox Adventures Rune Factory: Tides of Destiny Monster Hunter Diary: Poka Poka Airu Village Project 575 Poyopoyo Kansatsu Nikki Battle Vixens Phantasy Star Online 2 Hyperdimension Neptunia Mk2 Arc Rise Fantasia Tsuyokiss Megazone 23 Space Dandy Umineko: When They Cry Princess Lover! Miracle Girls Danganronpa: Trigger Happy Havoc Sword Art Online God Eater 2 Kenran Butohsai Street Fighter X Tekken To Love-Ru Nogizaka Haruka no Himitsu StarCraft II: Wings of Liberty Hitman: Codename 47 Kantai Collection Super Mario 64 Princess Minerva ASH: Archaic Sealed Heat Zegapain Tokimeki Memorial Online Mario Kart Wii Gakuen Utopia Manabi Straight! Code Geass XIII Hitman 2: Silent Assassin Hyperdimension Neptunia Metroid: Other M Saints Row: The Third Galaxy Angel Shippū! Iron Leaguer Full Throttle Lollipop Chainsaw Nichijou Tales of Innocence Soul Eater Future GPX Cyber Formula School Rumble Bludgeoning Angel Dokuro-Chan Saints Row: Gat out of Hell Dragon Nest Zettai Bōei Leviathan Super Mario Galaxy Lucky Star Nora to Toki no Kōbō: Kiri no Mori no Majo Granado Espada A Certain Magical Index Fate/stay night Queen's Blade Luminous Arc Record of Agarest War Zero Under Night In-Birth Street Fighter IV Sengoku Collection Akaneiro ni Somaru Saka Lagrange: The Flower of Rin-ne Luminous Arc 2 Godannar Hiiro no Kakera Dungeon Fighter Online (DFO) Date A Live 11eyes: Tsumi to Batsu to Aganai no Shōjo Spice and Wolf Final Fantasy Type-0 Atelier Meruru: The Apprentice of Arland Angel Beats! Galaxy Angel II Disgaea 4: A Promise Unforgotten Hitman: Absolution Hyperdimension Neptunia Victory Super Robot Wars UX Mugen Souls Tanken Driland Claymore Hitman: Blood Money StarCraft Hitman: Contracts Rune Factory 3: A Fantasy Harvest Moon Tantei Opera Milky Holmes Fate/Extra
99
action count
action approx
action find_tuple_counts
relation voice actor
type application
type common name
action count
action filter_type
action find
entity Soul Eater
relation voice actor
type application
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?c ) AS ?t ) WHERE { ?i property:voice_actor ?c . ?i rdf:type ontology:application . ?c rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Soul_Eater property:voice_actor ?u . ?u rdf:type ontology:application } } . FILTER ( ?t = ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P674
Q502895 Q2342494 Q15850590
USER
Which people plays a role in max number of collectables or theatrical genres ?
(c(Q2342494)|c(Q15850590),P674,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15850590
[[{'concept': 'Q2342494'}, {'concept': 'Q15850590'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?a ) WHERE { { ?s property:P674 ?z . ?z rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15850590 } UNION { ?s property:P674 ?z . ?s rdf:type ontology:Q2342494 . ?z rdf:type ontology:Q502895 } } GROUP BY ?z } . FILTER ( ?a = ?q ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?q ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?b ) WHERE { { ?i property:P674 ?c . ?c rdf:type ontology:Q502895 . ?i rdf:type ontology:Q2342494 } UNION { ?i property:P674 ?c . ?c rdf:type ontology:Q502895 . ?i rdf:type ontology:Q15850590 } } GROUP BY ?c } } }
action argmax
action union
action find_reverse_tuple_counts
relation characters
type common name
type collectable
action find_reverse_tuple_counts
relation characters
type common name
type theatrical genre
[[{'concept': 'collectable'}, {'concept': 'theatrical genre'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?a ) WHERE { { ?s property:characters ?z . ?z rdf:type ontology:common_name . ?s rdf:type ontology:theatrical_genre } UNION { ?s property:characters ?z . ?s rdf:type ontology:collectable . ?z rdf:type ontology:common_name } } GROUP BY ?z } . FILTER ( ?a = ?q ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?q ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?b ) WHERE { { ?i property:characters ?c . ?c rdf:type ontology:common_name . ?i rdf:type ontology:collectable } UNION { ?i property:characters ?c . ?c rdf:type ontology:common_name . ?i rdf:type ontology:theatrical_genre } } GROUP BY ?c } } }
[]
common name collectable theatrical genre
Q854177 Q47365
SYSTEM
Kay Scarpetta, Marie Antoinette
Q854177 Q47365
(c(Q2342494)|c(Q15850590),P674,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P674
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P674
type Q502895
type Q15850590
[ANSWERS] play a role in max number of collectables or theatrical genres
[[{'concept': 'Q2342494'}, {'concept': 'Q15850590'}], 'P674', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?a ) WHERE { { ?s property:P674 ?z . ?z rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15850590 } UNION { ?s property:P674 ?z . ?s rdf:type ontology:Q2342494 . ?z rdf:type ontology:Q502895 } } GROUP BY ?z } . FILTER ( ?a = ?q ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?q ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?b ) WHERE { { ?i property:P674 ?c . ?c rdf:type ontology:Q502895 . ?i rdf:type ontology:Q2342494 } UNION { ?i property:P674 ?c . ?c rdf:type ontology:Q502895 . ?i rdf:type ontology:Q15850590 } } GROUP BY ?c } } }
Kay Scarpetta Marie Antoinette
Kay Scarpetta and Marie Antoinette play a role in max number of collectables or theatrical genres
Kay Scarpetta Marie Antoinette
action argmax
action union
action find_reverse_tuple_counts
relation characters
type common name
type collectable
action find_reverse_tuple_counts
relation characters
type common name
type theatrical genre
[[{'concept': 'collectable'}, {'concept': 'theatrical genre'}], 'characters', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?a ) WHERE { { ?s property:characters ?z . ?z rdf:type ontology:common_name . ?s rdf:type ontology:theatrical_genre } UNION { ?s property:characters ?z . ?s rdf:type ontology:collectable . ?z rdf:type ontology:common_name } } GROUP BY ?z } . FILTER ( ?a = ?q ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?q ) { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?b ) WHERE { { ?i property:characters ?c . ?c rdf:type ontology:common_name . ?i rdf:type ontology:collectable } UNION { ?i property:characters ?c . ?c rdf:type ontology:common_name . ?i rdf:type ontology:theatrical_genre } } GROUP BY ?c } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2577828 Q43669
P27
Q15617994
USER
Which administrative territories are Thomas the Apostle or Mōri Okimoto a civilian of ?
OR((Q43669,P27,c(Q15617994)), (Q2577828,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q43669
relation P27
action find
entity Q2577828
relation P27
type Q15617994
{'OR': [['Q43669', 'P27', {'concept': 'Q15617994'}], ['Q2577828', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q43669 property:P27 ?m } UNION { resource:Q2577828 property:P27 ?m } } }
Mōri Okimoto Thomas the Apostle
action filter_type
action union
action find
entity Thomas the Apostle
relation country of citizenship
action find
entity Mōri Okimoto
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Thomas the Apostle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mōri Okimoto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Thomas_the_Apostle property:country_of_citizenship ?m } UNION { resource:Mōri_Okimoto property:country_of_citizenship ?m } } }
[]
designation for an administrative territorial entity
Q17 Q668
SYSTEM
Japan, India
Q17 Q668
OR((Q43669,P27,c(Q15617994)), (Q2577828,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q43669
relation P27
action find
entity Q2577828
relation P27
type Q15617994
[ANSWERS] are Thomas the Apostle or Mōri Okimoto a civilian of
{'OR': [['Q43669', 'P27', {'concept': 'Q15617994'}], ['Q2577828', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { { resource:Q43669 property:P27 ?m } UNION { resource:Q2577828 property:P27 ?m } } }
Japan India
Japan and India are Thomas the Apostle or Mōri Okimoto a civilian of
Japan India
action filter_type
action union
action find
entity Thomas the Apostle
relation country of citizenship
action find
entity Mōri Okimoto
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Thomas the Apostle', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mōri Okimoto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Thomas_the_Apostle property:country_of_citizenship ?m } UNION { resource:Mōri_Okimoto property:country_of_citizenship ?m } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1037042
P840
Q166142
USER
Do Hitman 2: Silent Assassin have their setting located at those administrative territories ?
(Q1037042,P840,Q17) (Q1037042,P840,Q668)
action is_in
entity prev_answer
action find
entity Q1037042
relation P840
['Q1037042', 'P840', 'Q17'] ['Q1037042', 'P840', 'Q668']
ASK WHERE { VALUES ( ?v ) { ( resource:Q17 ) ( resource:Q668 ) } . resource:Q1037042 property:P840 ?v }
Hitman 2: Silent Assassin
action is_in
entity prev_answer
action find
entity Hitman 2: Silent Assassin
relation narrative location
['Hitman 2: Silent Assassin', 'narrative location', 'Japan'] ['Hitman 2: Silent Assassin', 'narrative location', 'India']
ASK WHERE { VALUES ( ?v ) { ( resource:Japan ) ( resource:India ) } . resource:Hitman_2:_Silent_Assassin property:narrative_location ?v }
[]
application
SYSTEM
YES
(Q1037042,P840,Q17) (Q1037042,P840,Q668)
action is_in
entity prev_answer
action find
entity Q1037042
relation P840
[ANSWER]
['Q1037042', 'P840', 'Q17'] ['Q1037042', 'P840', 'Q668']
ASK WHERE { VALUES ( ?v ) { ( resource:Q17 ) ( resource:Q668 ) } . resource:Q1037042 property:P840 ?v }
Yes
action is_in
entity prev_answer
action find
entity Hitman 2: Silent Assassin
relation narrative location
['Hitman 2: Silent Assassin', 'narrative location', 'Japan'] ['Hitman 2: Silent Assassin', 'narrative location', 'India']
ASK WHERE { VALUES ( ?v ) { ( resource:Japan ) ( resource:India ) } . resource:Hitman_2:_Silent_Assassin property:narrative_location ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17
P1376
Q5119
USER
Which capitals are center of administration for Japan ?
(c(Q5119),P1376,Q17)
action filter_type
action find_reverse
entity Q17
relation P1376
type Q5119
[{'concept': 'Q5119'}, 'P1376', 'Q17']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q5119 . ?o property:P1376 resource:Q17 }
Japan
action filter_type
action find_reverse
entity Japan
relation capital of
type capital
[{'concept': 'capital'}, 'capital of', 'Japan']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:capital . ?o property:capital_of resource:Japan }
[]
capital
Q1052803 Q862509 Q751907
SYSTEM
Nagaoka-kyō, Heijō-kyō, Heian-kyō
Q6031707 Q1052803 Q862509 Q751907
(c(Q5119),P1376,Q17)
action filter_type
action find_reverse
entity Q17
relation P1376
type Q5119
[ANSWERS] are center of administration for Japan
[{'concept': 'Q5119'}, 'P1376', 'Q17']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q5119 . ?o property:P1376 resource:Q17 }
Fukuhara-kyō Nagaoka-kyō Heijō-kyō Heian-kyō
Nagaoka-kyō, Heijō-kyō and Heian-kyō are center of administration for Japan
Nagaoka-kyō Heijō-kyō Heian-kyō
action filter_type
action find_reverse
entity Japan
relation capital of
type capital
[{'concept': 'capital'}, 'capital of', 'Japan']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:capital . ?o property:capital_of resource:Japan }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17
P6
Q502895
USER
Who is the head of the government of Japan ?
(Q17,P6,c(Q502895))
action filter_type
action find
entity Q17
relation P6
type Q502895
['Q17', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q17 property:P6 ?i }
Japan
action filter_type
action find
entity Japan
relation head of government
type common name
['Japan', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:Japan property:head_of_government ?i }
[]
common name
Q132345
SYSTEM
Shinzō Abe
Q132345
(Q17,P6,c(Q502895))
action filter_type
action find
entity Q17
relation P6
type Q502895
The head of the government of Japan is Emperor [ANSWER]
['Q17', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q17 property:P6 ?i }
Shinzō Abe
The head of the government of Japan is Emperor Shinzō Abe
Shinzō Abe
action filter_type
action find
entity Japan
relation head of government
type common name
['Japan', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:Japan property:head_of_government ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17
P47
Q15617994
USER
Which administrative territories have a shared border with that one ?
(Q132345,P47,c(Q15617994))
action filter_type
action find
entity Q17
relation P47
type Q15617994
['Q132345', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q17 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Japan
action filter_type
action find
entity Japan
relation shares border with
type designation for an administrative territorial entity
['Shinzō Abe', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Japan property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q148 Q884
SYSTEM
Russia, People's Republic of China, South Korea
Q148 Q884 Q159 Q423
(Q132345,P47,c(Q15617994))
action filter_type
action find
entity Q17
relation P47
type Q15617994
[ANSWERS] have a shared border with that one
['Q132345', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q17 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
People's Republic of China South Korea Russia North Korea
Russia, People's Republic of China and South Korea have a shared border with that one
Russia People's Republic of China South Korea
action filter_type
action find
entity Japan
relation shares border with
type designation for an administrative territorial entity
['Shinzō Abe', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Japan property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q159
P1027
Q618779
USER
Which award is bestowed by that administrative territory ?
(c(Q618779),P1027,Q159)
action filter_type
action find_reverse
entity Q159
relation P1027
type Q618779
[{'concept': 'Q618779'}, 'P1027', 'Q159']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q618779 . ?i property:P1027 resource:Q159 }
Russia
action filter_type
action find_reverse
entity Russia
relation conferred by
type award
[{'concept': 'award'}, 'conferred by', 'Russia']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:award . ?i property:conferred_by resource:Russia }
[]
award
Clarification for simple ques.
Q148
SYSTEM
Did you mean People's Republic of China ?
Q159 Q148 Q884
(c(Q618779),P1027,Q159) (c(Q618779),P1027,Q148) (c(Q618779),P1027,Q884)
[ANSWER]
[{'concept': 'Q618779'}, 'P1027', 'Q159'] [{'concept': 'Q618779'}, 'P1027', 'Q148'] [{'concept': 'Q618779'}, 'P1027', 'Q884']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q618779 . ?i property:P1027 resource:Q159 }
Russia People's Republic of China South Korea
Did you mean People's Republic of China ?
People's Republic of China
[{'concept': 'award'}, 'conferred by', 'Russia'] [{'concept': 'award'}, 'conferred by', "People's Republic of China"] [{'concept': 'award'}, 'conferred by', 'South Korea']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:award . ?i property:conferred_by resource:Russia }
[]
Simple Question (Coreferenced)
USER
No, I meant Russia. Could you tell me the answer for that?
(c(Q618779),P1027,Q159)
Q159
[{'concept': 'Q618779'}, 'P1027', 'Q159']
[{'concept': 'award'}, 'conferred by', 'Russia']
[]
Q2376515
SYSTEM
Medal "For Life Saving"
Q2376515
(c(Q618779),P1027,Q159)
action filter_type
action find_reverse
entity Q159
relation P1027
type Q618779
[ANSWER] is bestowed by that administrative territory
[{'concept': 'Q618779'}, 'P1027', 'Q159']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q618779 . ?i property:P1027 resource:Q159 }
Medal "For Life Saving"
Medal "For Life Saving" is bestowed by that administrative territory
Medal "For Life Saving"
action filter_type
action find_reverse
entity Russia
relation conferred by
type award
[{'concept': 'award'}, 'conferred by', 'Russia']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:award . ?i property:conferred_by resource:Russia }
[]