Simple Question (Direct)
Simple Question
Q171567
P800
Q15416
USER
Who notable work was done by Laura Prepon ?
(Q171567,P800,c(Q15416))
action filter_type
action find
entity Q171567
relation P800
type Q15416
['Q171567', 'P800', {'concept': 'Q15416'}]
SELECT DISTINCT ?a WHERE { resource:Q171567 property:P800 ?a . ?a rdf:type ontology:Q15416 }
Laura Prepon
action filter_type
action find
entity Laura Prepon
relation notable work
type television program
['Laura Prepon', 'notable work', {'concept': 'television program'}]
SELECT DISTINCT ?a WHERE { resource:Laura_Prepon property:notable_work ?a . ?a rdf:type ontology:television_program }
[]
television program
Q208072
SYSTEM
That '70s Show
Q208072
(Q171567,P800,c(Q15416))
action filter_type
action find
entity Q171567
relation P800
type Q15416
[ANSWER] was done by Laura Prepon
['Q171567', 'P800', {'concept': 'Q15416'}]
SELECT DISTINCT ?a WHERE { resource:Q171567 property:P800 ?a . ?a rdf:type ontology:Q15416 }
That '70s Show
That '70s Show was done by Laura Prepon
That '70s Show
action filter_type
action find
entity Laura Prepon
relation notable work
type television program
['Laura Prepon', 'notable work', {'concept': 'television program'}]
SELECT DISTINCT ?a WHERE { resource:Laura_Prepon property:notable_work ?a . ?a rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q171567
P69
Q159334
USER
Which secondary school was Laura Prepon educated at ?
(Q171567,P69,c(Q159334))
action filter_type
action find
entity Q171567
relation P69
type Q159334
['Q171567', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?g WHERE { resource:Q171567 property:P69 ?g . ?g rdf:type ontology:Q159334 }
Laura Prepon
action filter_type
action find
entity Laura Prepon
relation educated at
type secondary school
['Laura Prepon', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?g WHERE { resource:Laura_Prepon property:educated_at ?g . ?g rdf:type ontology:secondary_school }
[]
secondary school
Q7973196
SYSTEM
Watchung Hills Regional High School
Q7973196
(Q171567,P69,c(Q159334))
action filter_type
action find
entity Q171567
relation P69
type Q159334
Laura Prepon was educated by [ANSWER]
['Q171567', 'P69', {'concept': 'Q159334'}]
SELECT DISTINCT ?g WHERE { resource:Q171567 property:P69 ?g . ?g rdf:type ontology:Q159334 }
Watchung Hills Regional High School
Laura Prepon was educated by Watchung Hills Regional High School
Watchung Hills Regional High School
action filter_type
action find
entity Laura Prepon
relation educated at
type secondary school
['Laura Prepon', 'educated at', {'concept': 'secondary school'}]
SELECT DISTINCT ?g WHERE { resource:Laura_Prepon property:educated_at ?g . ?g rdf:type ontology:secondary_school }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q208072
P1441
Q6619679
USER
Which fictional humanoids appear in That '70s Show ?
(c(Q6619679),P1441,Q208072)
action filter_type
action find_reverse
entity Q208072
relation P1441
type Q6619679
[{'concept': 'Q6619679'}, 'P1441', 'Q208072']
SELECT DISTINCT ?v WHERE { ?v property:P1441 resource:Q208072 . ?v rdf:type ontology:Q6619679 }
That '70s Show
action filter_type
action find_reverse
entity That '70s Show
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', "That '70s Show"]
SELECT DISTINCT ?v WHERE { ?v property:present_in_work resource:That_'70s_Show . ?v rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q2501268 Q2591046 Q3148680
SYSTEM
Kitty Forman, Eric Forman, Red Forman
Q2224819 Q2591046 Q3109703 Q3178473 Q3148680 Q2501268 Q2955154 Q2746414
(c(Q6619679),P1441,Q208072)
action filter_type
action find_reverse
entity Q208072
relation P1441
type Q6619679
[ANSWERS] appear in That '70s Show
[{'concept': 'Q6619679'}, 'P1441', 'Q208072']
SELECT DISTINCT ?v WHERE { ?v property:P1441 resource:Q208072 . ?v rdf:type ontology:Q6619679 }
Steven Hyde Eric Forman Donna Pinciotti Jackie Burkhart Red Forman Kitty Forman Casey Kelso Leo
Kitty Forman, Eric Forman and Red Forman appear in That '70s Show
Kitty Forman Eric Forman Red Forman
action filter_type
action find_reverse
entity That '70s Show
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', "That '70s Show"]
SELECT DISTINCT ?v WHERE { ?v property:present_in_work resource:That_'70s_Show . ?v rdf:type ontology:fictional_humanoid }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2501268
P25
Q6619679
USER
Which fictional humanoids have Kitty Forman as mother ?
(c(Q6619679),P25,Q2501268)
action filter_type
action find_reverse
entity Q2501268
relation P25
type Q6619679
[{'concept': 'Q6619679'}, 'P25', 'Q2501268']
SELECT DISTINCT ?j WHERE { ?j property:P25 resource:Q2501268 . ?j rdf:type ontology:Q6619679 }
Kitty Forman
action filter_type
action find_reverse
entity Kitty Forman
relation mother
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'mother', 'Kitty Forman']
SELECT DISTINCT ?j WHERE { ?j property:mother resource:Kitty_Forman . ?j rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q2591046 Q3219652
SYSTEM
Eric Forman, Laurie Forman
Q2591046 Q3219652
(c(Q6619679),P25,Q2501268)
action filter_type
action find_reverse
entity Q2501268
relation P25
type Q6619679
[ANSWERS] have Kitty Forman as mother
[{'concept': 'Q6619679'}, 'P25', 'Q2501268']
SELECT DISTINCT ?j WHERE { ?j property:P25 resource:Q2501268 . ?j rdf:type ontology:Q6619679 }
Eric Forman Laurie Forman
Eric Forman and Laurie Forman have Kitty Forman as mother
Eric Forman Laurie Forman
action filter_type
action find_reverse
entity Kitty Forman
relation mother
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'mother', 'Kitty Forman']
SELECT DISTINCT ?j WHERE { ?j property:mother resource:Kitty_Forman . ?j rdf:type ontology:fictional_humanoid }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3219652
P734
Q82799
USER
Who has the surname that fictional humanoid ?
(Q3219652,P734,c(Q82799))
action filter_type
action find
entity Q3219652
relation P734
type Q82799
['Q3219652', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q82799 . resource:Q3219652 property:P734 ?g }
Laurie Forman
action filter_type
action find
entity Laurie Forman
relation family name
type name
['Laurie Forman', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:name . resource:Laurie_Forman property:family_name ?g }
[]
name
Clarification for simple ques.
Q2591046
SYSTEM
Did you mean Eric Forman ?
Q2591046 Q3219652
(Q2591046,P734,c(Q82799)) (Q3219652,P734,c(Q82799))
[ANSWER]
['Q2591046', 'P734', {'concept': 'Q82799'}] ['Q3219652', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q82799 . resource:Q3219652 property:P734 ?g }
Eric Forman Laurie Forman
Did you mean Eric Forman ?
Eric Forman
['Eric Forman', 'family name', {'concept': 'name'}] ['Laurie Forman', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:name . resource:Laurie_Forman property:family_name ?g }
[]
Simple Question (Coreferenced)
USER
No, I meant Laurie Forman. Could you tell me the answer for that?
(Q3219652,P734,c(Q82799))
Q3219652
['Q3219652', 'P734', {'concept': 'Q82799'}]
['Laurie Forman', 'family name', {'concept': 'name'}]
[]
Q12016761
SYSTEM
Forman
Q12016761
(Q3219652,P734,c(Q82799))
action filter_type
action find
entity Q3219652
relation P734
type Q82799
[ANSWER] has the surname that fictional humanoid
['Q3219652', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q82799 . resource:Q3219652 property:P734 ?g }
Forman
Forman has the surname that fictional humanoid
Forman
action filter_type
action find
entity Laurie Forman
relation family name
type name
['Laurie Forman', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:name . resource:Laurie_Forman property:family_name ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3219652
P7
Q6619679
USER
Who has Laurie Forman as their brother ?
(Q3219652,P7,c(Q6619679))
action filter_type
action find
entity Q3219652
relation P7
type Q6619679
['Q3219652', 'P7', {'concept': 'Q6619679'}]
SELECT DISTINCT ?z WHERE { resource:Q3219652 property:P7 ?z . ?z rdf:type ontology:Q6619679 }
Laurie Forman
action filter_type
action find
entity Laurie Forman
relation brother
type fictional humanoid
['Laurie Forman', 'brother', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?z WHERE { resource:Laurie_Forman property:brother ?z . ?z rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q2591046
SYSTEM
Eric Forman
Q2591046
(Q3219652,P7,c(Q6619679))
action filter_type
action find
entity Q3219652
relation P7
type Q6619679
[ANSWER] has Laurie Forman as their brother
['Q3219652', 'P7', {'concept': 'Q6619679'}]
SELECT DISTINCT ?z WHERE { resource:Q3219652 property:P7 ?z . ?z rdf:type ontology:Q6619679 }
Eric Forman
Eric Forman has Laurie Forman as their brother
Eric Forman
action filter_type
action find
entity Laurie Forman
relation brother
type fictional humanoid
['Laurie Forman', 'brother', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?z WHERE { resource:Laurie_Forman property:brother ?z . ?z rdf:type ontology:fictional_humanoid }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21162450
Q6619679
USER
And also tell me about Roxanne?
(Q21162450,P7,c(Q6619679))
action filter_type
action find
entity Q21162450
relation P7
type Q6619679
['Q21162450', 'P7', {'concept': 'Q6619679'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q6619679 . resource:Q21162450 property:P7 ?q }
Roxanne
action filter_type
action find
entity Roxanne
relation brother
type fictional humanoid
['Roxanne', 'brother', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:fictional_humanoid . resource:Roxanne property:brother ?q }
[]
fictional humanoid
Q3808298
SYSTEM
James "Jim" Orenthal
Q3808298
(Q21162450,P7,c(Q6619679))
action filter_type
action find
entity Q21162450
relation P7
type Q6619679
[ANSWER]
['Q21162450', 'P7', {'concept': 'Q6619679'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q6619679 . resource:Q21162450 property:P7 ?q }
James "Jim" Orenthal
James "Jim" Orenthal
action filter_type
action find
entity Roxanne
relation brother
type fictional humanoid
['Roxanne', 'brother', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:fictional_humanoid . resource:Roxanne property:brother ?q }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q3808298 Q5179732
P27
Q15617994
USER
Is that fictional humanoid a civilian of Cowlairs ?
(Q3808298,P27,Q5179732)
action is_in
entity Q5179732
action find
entity Q3808298
relation P27
['Q3808298', 'P27', 'Q5179732']
ASK WHERE { resource:Q3808298 property:P27 resource:Q5179732 }
James "Jim" Orenthal Cowlairs
action is_in
entity Cowlairs
action find
entity James "Jim" Orenthal
relation country of citizenship
['James "Jim" Orenthal', 'country of citizenship', 'Cowlairs']
ASK WHERE { resource:James_"Jim"_Orenthal property:country_of_citizenship resource:Cowlairs }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3808298,P27,Q5179732)
action is_in
entity Q5179732
action find
entity Q3808298
relation P27
[ANSWER]
['Q3808298', 'P27', 'Q5179732']
ASK WHERE { resource:Q3808298 property:P27 resource:Q5179732 }
No
action is_in
entity Cowlairs
action find
entity James "Jim" Orenthal
relation country of citizenship
['James "Jim" Orenthal', 'country of citizenship', 'Cowlairs']
ASK WHERE { resource:James_"Jim"_Orenthal property:country_of_citizenship resource:Cowlairs }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2591046
P27
Q15617994
USER
How many administrative territories are Eric Forman an inhabitant of ?
(Q2591046,P27,c(Q15617994))
action count
action filter_type
action find
entity Q2591046
relation P27
type Q15617994
['Q2591046', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Q2591046 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Eric Forman
action count
action filter_type
action find
entity Eric Forman
relation country of citizenship
type designation for an administrative territorial entity
['Eric Forman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Eric_Forman property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q30
(Q2591046,P27,c(Q15617994))
action count
action filter_type
action find
entity Q2591046
relation P27
type Q15617994
[ANSWER]
['Q2591046', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Q2591046 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
United States of America
1
action count
action filter_type
action find
entity Eric Forman
relation country of citizenship
type designation for an administrative territorial entity
['Eric Forman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Eric_Forman property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q26838622
Q15617994
USER
And also tell me about Edward Burr?
(Q26838622,P27,c(Q15617994))
action count
action filter_type
action find
entity Q26838622
relation P27
type Q15617994
['Q26838622', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q26838622 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Edward Burr
action count
action filter_type
action find
entity Edward Burr
relation country of citizenship
type designation for an administrative territorial entity
['Edward Burr', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Edward_Burr property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q26838622,P27,c(Q15617994))
action count
action filter_type
action find
entity Q26838622
relation P27
type Q15617994
[ANSWER]
['Q26838622', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Q26838622 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Edward Burr
relation country of citizenship
type designation for an administrative territorial entity
['Edward Burr', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { resource:Edward_Burr property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q11680307
P674
Q6619679 Q5398426 Q277759
USER
How many fictional humanoids appear as a character in more number of television series or book series than Brienne of Tarth ?
(c(Q5398426)|c(Q277759),P674,c(Q6619679))
action count
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q6619679
type Q5398426
action find_reverse_tuple_counts
relation P674
type Q6619679
type Q277759
action count
action filter_multi_types
action find_reverse
entity Q11680307
relation P674
type Q5398426
type Q277759
[[{'concept': 'Q5398426'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q6619679'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?n ) WHERE { { ?w property:P674 ?i . ?i rdf:type ontology:Q6619679 . ?w rdf:type ontology:Q277759 } UNION { ?w property:P674 ?i . ?i rdf:type ontology:Q6619679 . ?w rdf:type ontology:Q5398426 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P674 resource:Q11680307 . { { ?r rdf:type ontology:Q5398426 } UNION { ?r rdf:type ontology:Q277759 } } } } . FILTER ( ?n > ?f ) }
Brienne of Tarth
action count
action greater
action union
action find_reverse_tuple_counts
relation characters
type fictional humanoid
type television series
action find_reverse_tuple_counts
relation characters
type fictional humanoid
type book series
action count
action filter_multi_types
action find_reverse
entity Brienne of Tarth
relation characters
type television series
type book series
[[{'concept': 'television series'}, {'concept': 'book series'}], 'characters', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?n ) WHERE { { ?w property:characters ?i . ?i rdf:type ontology:fictional_humanoid . ?w rdf:type ontology:book_series } UNION { ?w property:characters ?i . ?i rdf:type ontology:fictional_humanoid . ?w rdf:type ontology:television_series } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:characters resource:Brienne_of_Tarth . { { ?r rdf:type ontology:television_series } UNION { ?r rdf:type ontology:book_series } } } } . FILTER ( ?n > ?f ) }
[]
fictional humanoid television series book series
SYSTEM
27
Q752269 Q92440 Q15971036 Q1367960 Q11857393 Q11850992 Q7620503 Q2695156 Q1780654 Q11850398 Q2628415 Q116113 Q10870658 Q4921101 Q715597 Q1084219 Q5047185 Q3141938 Q1756333 Q2335886 Q3162938 Q986716 Q6051120 Q1191282 Q11868027 Q2445695 Q986728
(c(Q5398426)|c(Q277759),P674,c(Q6619679))
action count
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q6619679
type Q5398426
action find_reverse_tuple_counts
relation P674
type Q6619679
type Q277759
action count
action filter_multi_types
action find_reverse
entity Q11680307
relation P674
type Q5398426
type Q277759
[ANSWER]
[[{'concept': 'Q5398426'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q6619679'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?n ) WHERE { { ?w property:P674 ?i . ?i rdf:type ontology:Q6619679 . ?w rdf:type ontology:Q277759 } UNION { ?w property:P674 ?i . ?i rdf:type ontology:Q6619679 . ?w rdf:type ontology:Q5398426 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P674 resource:Q11680307 . { { ?r rdf:type ontology:Q5398426 } UNION { ?r rdf:type ontology:Q277759 } } } } . FILTER ( ?n > ?f ) }
Son Gohan Dan Dare Akane Miyoshi Nobita Nobi Elina Koskela Alma Koskela Asterix Batman Nestor Burma Akseli Koskela Mikael Blomkvist James Gordon Lucky Luke Nobi Sewashi Obelix Falbala Carter Kane Hubert Bonisseur de La Bath Getafix Ajihad Jason Grace Tamako Nobi Sadie Kane Lisbeth Salander Jussi Koskela Abraracourcix Nobisuke Nobi
27
action count
action greater
action union
action find_reverse_tuple_counts
relation characters
type fictional humanoid
type television series
action find_reverse_tuple_counts
relation characters
type fictional humanoid
type book series
action count
action filter_multi_types
action find_reverse
entity Brienne of Tarth
relation characters
type television series
type book series
[[{'concept': 'television series'}, {'concept': 'book series'}], 'characters', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?n ) WHERE { { ?w property:characters ?i . ?i rdf:type ontology:fictional_humanoid . ?w rdf:type ontology:book_series } UNION { ?w property:characters ?i . ?i rdf:type ontology:fictional_humanoid . ?w rdf:type ontology:television_series } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:characters resource:Brienne_of_Tarth . { { ?r rdf:type ontology:television_series } UNION { ?r rdf:type ontology:book_series } } } } . FILTER ( ?n > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3779598
P674
Q6619679 Q5398426 Q277759
USER
And what about Raoul Duke?
(c(Q5398426)|c(Q277759),P674,c(Q6619679))
action count
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q6619679
type Q5398426
action find_reverse_tuple_counts
relation P674
type Q6619679
type Q277759
action count
action filter_multi_types
action find_reverse
entity Q3779598
relation P674
type Q5398426
type Q277759
[[{'concept': 'Q5398426'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q6619679'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?m WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q5398426 ) ( ontology:Q277759 ) } } GROUP BY ?m } . FILTER ( ?e > ?n ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g property:P674 resource:Q3779598 . { { ?g rdf:type ontology:Q5398426 } UNION { ?g rdf:type ontology:Q277759 } } } } }
Raoul Duke
action count
action greater
action union
action find_reverse_tuple_counts
relation characters
type fictional humanoid
type television series
action find_reverse_tuple_counts
relation characters
type fictional humanoid
type book series
action count
action filter_multi_types
action find_reverse
entity Raoul Duke
relation characters
type television series
type book series
[[{'concept': 'television series'}, {'concept': 'book series'}], 'characters', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?m WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:television_series ) ( ontology:book_series ) } } GROUP BY ?m } . FILTER ( ?e > ?n ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g property:characters resource:Raoul_Duke . { { ?g rdf:type ontology:television_series } UNION { ?g rdf:type ontology:book_series } } } } }
[]
fictional humanoid television series book series
SYSTEM
27
Q752269 Q92440 Q15971036 Q1367960 Q11857393 Q11850992 Q7620503 Q2695156 Q1780654 Q11850398 Q2628415 Q116113 Q10870658 Q4921101 Q715597 Q1084219 Q5047185 Q3141938 Q1756333 Q2335886 Q3162938 Q986716 Q6051120 Q1191282 Q11868027 Q2445695 Q986728
(c(Q5398426)|c(Q277759),P674,c(Q6619679))
action count
action greater
action union
action find_reverse_tuple_counts
relation P674
type Q6619679
type Q5398426
action find_reverse_tuple_counts
relation P674
type Q6619679
type Q277759
action count
action filter_multi_types
action find_reverse
entity Q3779598
relation P674
type Q5398426
type Q277759
[ANSWER]
[[{'concept': 'Q5398426'}, {'concept': 'Q277759'}], 'P674', {'concept': 'Q6619679'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?m WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q5398426 ) ( ontology:Q277759 ) } } GROUP BY ?m } . FILTER ( ?e > ?n ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g property:P674 resource:Q3779598 . { { ?g rdf:type ontology:Q5398426 } UNION { ?g rdf:type ontology:Q277759 } } } } }
Son Gohan Dan Dare Akane Miyoshi Nobita Nobi Elina Koskela Alma Koskela Asterix Batman Nestor Burma Akseli Koskela Mikael Blomkvist James Gordon Lucky Luke Nobi Sewashi Obelix Falbala Carter Kane Hubert Bonisseur de La Bath Getafix Ajihad Jason Grace Tamako Nobi Sadie Kane Lisbeth Salander Jussi Koskela Abraracourcix Nobisuke Nobi
27
action count
action greater
action union
action find_reverse_tuple_counts
relation characters
type fictional humanoid
type television series
action find_reverse_tuple_counts
relation characters
type fictional humanoid
type book series
action count
action filter_multi_types
action find_reverse
entity Raoul Duke
relation characters
type television series
type book series
[[{'concept': 'television series'}, {'concept': 'book series'}], 'characters', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) ?m WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:television_series ) ( ontology:book_series ) } } GROUP BY ?m } . FILTER ( ?e > ?n ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g property:characters resource:Raoul_Duke . { { ?g rdf:type ontology:television_series } UNION { ?g rdf:type ontology:book_series } } } } }
[]