Simple Question (Direct)
Simple Question
Q6748044
P495
Q15617994
USER
Which administrative territory is the origin of Mandi ?
(Q6748044,P495,c(Q15617994))
action filter_type
action find
entity Q6748044
relation P495
type Q15617994
['Q6748044', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q6748044 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
Mandi
action filter_type
action find
entity Mandi
relation country of origin
type designation for an administrative territorial entity
['Mandi', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Mandi property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q6748044,P495,c(Q15617994))
action filter_type
action find
entity Q6748044
relation P495
type Q15617994
[ANSWER] is the origin of Mandi
['Q6748044', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q6748044 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
India
India is the origin of Mandi
India
action filter_type
action find
entity Mandi
relation country of origin
type designation for an administrative territorial entity
['Mandi', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Mandi property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6748044
P161
Q502895
USER
Who were casted in that work of art ?
(Q668,P161,c(Q502895))
action filter_type
action find
entity Q6748044
relation P161
type Q502895
['Q668', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q6748044 property:P161 ?i . ?i rdf:type ontology:Q502895 }
Mandi
action filter_type
action find
entity Mandi
relation cast member
type common name
['India', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Mandi property:cast_member ?i . ?i rdf:type ontology:common_name }
[]
common name
Q465863 Q469945 Q467960
SYSTEM
Shabana Azmi, Naseeruddin Shah, Smita Patil
Q465863 Q467960 Q333443 Q677439 Q469945
(Q668,P161,c(Q502895))
action filter_type
action find
entity Q6748044
relation P161
type Q502895
[ANSWERS] were casted in that work of art
['Q668', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q6748044 property:P161 ?i . ?i rdf:type ontology:Q502895 }
Shabana Azmi Smita Patil Amrish Puri Kulbhushan Kharbanda Naseeruddin Shah
Shabana Azmi, Naseeruddin Shah and Smita Patil were casted in that work of art
Shabana Azmi Naseeruddin Shah Smita Patil
action filter_type
action find
entity Mandi
relation cast member
type common name
['India', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Mandi property:cast_member ?i . ?i rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q469945 Q22101595
P26
Q502895
USER
How many people have Naseeruddin Shah or never married as spouse ?
(c(Q502895),P26,Q469945) (c(Q502895),P26,Q22101595)
action count
action union
action filter_type
action find_reverse
entity Q469945
relation P26
type Q502895
action filter_type
action find_reverse
entity Q22101595
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q469945'] [{'concept': 'Q502895'}, 'P26', 'Q22101595']
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P26 ?b . VALUES ( ?b ) { ( resource:Q469945 ) ( resource:Q22101595 ) } }
Naseeruddin Shah never married
action count
action union
action filter_type
action find_reverse
entity Naseeruddin Shah
relation spouse
type common name
action filter_type
action find_reverse
entity never married
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Naseeruddin Shah'] [{'concept': 'common name'}, 'spouse', 'never married']
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:spouse ?b . VALUES ( ?b ) { ( resource:Naseeruddin_Shah ) ( resource:never_married ) } }
[]
common name
SYSTEM
7
Q5779854 Q16594779 Q18238839 Q16596476 Q7295837 Q1120787 Q5955839
(c(Q502895),P26,Q469945) (c(Q502895),P26,Q22101595)
action count
action union
action filter_type
action find_reverse
entity Q469945
relation P26
type Q502895
action filter_type
action find_reverse
entity Q22101595
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q469945'] [{'concept': 'Q502895'}, 'P26', 'Q22101595']
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P26 ?b . VALUES ( ?b ) { ( resource:Q469945 ) ( resource:Q22101595 ) } }
Sigrid Göransson Evelina Fahnehjelm Paul Edvard Filéen Julia Strömberg Ratna Pathak Rosa Fitinghoff Adolf Lindgren
7
action count
action union
action filter_type
action find_reverse
entity Naseeruddin Shah
relation spouse
type common name
action filter_type
action find_reverse
entity never married
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Naseeruddin Shah'] [{'concept': 'common name'}, 'spouse', 'never married']
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:spouse ?b . VALUES ( ?b ) { ( resource:Naseeruddin_Shah ) ( resource:never_married ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q668
P1071
Q860861 Q3305213
USER
How many sculptures and paintings have India as their final assembly location ?
(c(Q860861),P1071,Q668) (c(Q3305213),P1071,Q668)
action count
action union
action filter_type
action find_reverse
entity Q668
relation P1071
type Q860861
action filter_type
action find_reverse
entity Q668
relation P1071
type Q3305213
[{'concept': 'Q860861'}, 'P1071', 'Q668'] [{'concept': 'Q3305213'}, 'P1071', 'Q668']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { ?t rdf:type ontology:Q860861 . ?t property:P1071 resource:Q668 } UNION { ?t property:P1071 resource:Q668 . ?t rdf:type ontology:Q3305213 } }
India
action count
action union
action filter_type
action find_reverse
entity India
relation location of final assembly
type sculpture
action filter_type
action find_reverse
entity India
relation location of final assembly
type painting
[{'concept': 'sculpture'}, 'location of final assembly', 'India'] [{'concept': 'painting'}, 'location of final assembly', 'India']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { ?t rdf:type ontology:sculpture . ?t property:location_of_final_assembly resource:India } UNION { ?t property:location_of_final_assembly resource:India . ?t rdf:type ontology:painting } }
[]
sculpture painting
SYSTEM
1 sculptures and 2 paintings
Q16963343 Q18713954 Q18713967
(c(Q860861),P1071,Q668) (c(Q3305213),P1071,Q668)
action count
action union
action filter_type
action find_reverse
entity Q668
relation P1071
type Q860861
action filter_type
action find_reverse
entity Q668
relation P1071
type Q3305213
[ANSWER]
[{'concept': 'Q860861'}, 'P1071', 'Q668'] [{'concept': 'Q3305213'}, 'P1071', 'Q668']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { ?t rdf:type ontology:Q860861 . ?t property:P1071 resource:Q668 } UNION { ?t property:P1071 resource:Q668 . ?t rdf:type ontology:Q3305213 } }
Double leaf jali Twelve folios with paintings Paintings of pietra dura panels from the Taj Mahal
1 sculptures and 2 paintings
action count
action union
action filter_type
action find_reverse
entity India
relation location of final assembly
type sculpture
action filter_type
action find_reverse
entity India
relation location of final assembly
type painting
[{'concept': 'sculpture'}, 'location of final assembly', 'India'] [{'concept': 'painting'}, 'location of final assembly', 'India']
SELECT DISTINCT ( COUNT ( ?t ) AS ?g ) WHERE { { ?t rdf:type ontology:sculpture . ?t property:location_of_final_assembly resource:India } UNION { ?t property:location_of_final_assembly resource:India . ?t rdf:type ontology:painting } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q469945
P40
Q502895
USER
Which people are children of Naseeruddin Shah ?
(Q469945,P40,c(Q502895))
action filter_type
action find
entity Q469945
relation P40
type Q502895
['Q469945', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q469945 property:P40 ?k . ?k rdf:type ontology:Q502895 }
Naseeruddin Shah
action filter_type
action find
entity Naseeruddin Shah
relation child
type common name
['Naseeruddin Shah', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Naseeruddin_Shah property:child ?k . ?k rdf:type ontology:common_name }
[]
common name
Q7937517 Q16237536 Q2003696
SYSTEM
Vivaan Shah, Imaad Shah, Heeba Shah
Q7937517 Q16237536 Q2003696
(Q469945,P40,c(Q502895))
action filter_type
action find
entity Q469945
relation P40
type Q502895
[ANSWERS] are children of Naseeruddin Shah
['Q469945', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q469945 property:P40 ?k . ?k rdf:type ontology:Q502895 }
Vivaan Shah Imaad Shah Heeba Shah
Vivaan Shah, Imaad Shah and Heeba Shah are children of Naseeruddin Shah
Vivaan Shah Imaad Shah Heeba Shah
action filter_type
action find
entity Naseeruddin Shah
relation child
type common name
['Naseeruddin Shah', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Naseeruddin_Shah property:child ?k . ?k rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q16161848
P361
Q838948 Q838948 Q15619164
USER
Which works of art are lesser number of works of art or abstract beings a portion of than The Arts of War and The Arts of Peace ?
(c(Q838948)|c(Q15619164),P361,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q16161848
relation P361
type Q838948
type Q15619164
[[{'concept': 'Q838948'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?q < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P361 resource:Q16161848 . { { ?z rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q15619164 } } } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?p WHERE { { ?c property:P361 ?p . ?p rdf:type ontology:Q838948 . ?c rdf:type ontology:Q15619164 } UNION { ?c property:P361 ?p . ?c rdf:type ontology:Q838948 . ?p rdf:type ontology:Q838948 } } GROUP BY ?p } }
The Arts of War and The Arts of Peace
action less
action union
action find_reverse_tuple_counts
relation part of
type work of art
type work of art
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
action count
action filter_multi_types
action find_reverse
entity The Arts of War and The Arts of Peace
relation part of
type work of art
type abstract being
[[{'concept': 'work of art'}, {'concept': 'abstract being'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?q < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:part_of resource:The_Arts_of_War_and_The_Arts_of_Peace . { { ?z rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:abstract_being } } } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?p WHERE { { ?c property:part_of ?p . ?p rdf:type ontology:work_of_art . ?c rdf:type ontology:abstract_being } UNION { ?c property:part_of ?p . ?c rdf:type ontology:work_of_art . ?p rdf:type ontology:work_of_art } } GROUP BY ?p } }
[]
work of art work of art abstract being
Q205028 Q102438 Q15624215
SYSTEM
Iron Man 2, Harry Potter and the Philosopher's Stone, Lucy
Q2312028 Q1762957 Q5723375 Q3415280 Q4143086 Q127367 Q22260775 Q193066 Q15624215 Q206400 Q2364709 Q372959 Q102438 Q10371896 Q18547944 Q6503493 Q3907523 Q3907489 Q29478 Q17275612 Q552002 Q19393199 Q10550583 Q934970 Q1209853 Q18609716 Q284184 Q215750 Q734834 Q222867 Q495954 Q733065 Q747847 Q977372 Q161687 Q1534737 Q4656518 Q1411766 Q205028 Q1623056 Q1760893 Q753449 Q314003 Q4110177 Q1356770 Q3193421 Q16741153 Q332368 Q3983379 Q478748 Q1195466 Q2003287 Q1752478 Q174811 Q945138 Q187483 Q6519361 Q874496 Q475476 Q103569 Q976149 Q3907478 Q1988321 Q18577910 Q3428050 Q472359 Q971109 Q1360347 Q632753 Q60072 Q489772 Q41567 Q7572454 Q3747490 Q1270166 Q3395799 Q463313 Q18217301 Q232009 Q309153 Q2905386 Q165325 Q2626332 Q7338317 Q22527805 Q203443 Q201022 Q213053 Q3907484 Q2089457 Q3907512 Q2661437 Q79218 Q1125687 Q20857440 Q24980 Q283134 Q93184 Q24568939 Q7203413 Q1230318 Q378838 Q928019 Q152185 Q2405799 Q281465 Q3907505 Q164804 Q16156301 Q3992615 Q1297233 Q482994 Q3087894 Q21340348 Q7600677 Q2467518 Q10512738
(c(Q838948)|c(Q15619164),P361,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q16161848
relation P361
type Q838948
type Q15619164
[ANSWERS] are lesser number of works of art or abstract beings a portion of than The Arts of War and The Arts of Peace
[[{'concept': 'Q838948'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?q < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:P361 resource:Q16161848 . { { ?z rdf:type ontology:Q838948 } UNION { ?z rdf:type ontology:Q15619164 } } } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?p WHERE { { ?c property:P361 ?p . ?p rdf:type ontology:Q838948 . ?c rdf:type ontology:Q15619164 } UNION { ?c property:P361 ?p . ?c rdf:type ontology:Q838948 . ?p rdf:type ontology:Q838948 } } GROUP BY ?p } }
Star Spangled Rhythm Release the Prisoners to Spring Tales of an Island Dangerous Moonlight Ride The Lord of the Rings: The Fellowship of the Ring Sonar Kella Breakfast at Tiffany's Lucy The Merchant of Venice Alice Comedies The Towering Inferno Harry Potter and the Philosopher's Stone Sing, Baby, Sing The Martian Law of the Sea polyptych of Saint Augustine Assumption Faust Le Tour de France dans les Pyrénées Ro.Go.Pa.G. Life of Humanity Kurt Olsson – filmen om mitt liv som mig själv Le Roi et l'oiseau Dick Tracy Scenes from the Life of the Virgin Ra.One Julius Caesar Ghent Altarpiece 2 Fast 2 Furious Henry V Dabangg New Orleans New York Stories Harry Potter and the Half-Blood Prince Life A Divine Double Feature predella Iron Man 2 The Fighting Temptations Roseanna Christine Stolpersteine A Night Before Christmas Heroon Karl Liebknecht 3x3D A View to a Kill Ten Minutes Older: The Trumpet The Holiday The Man on the Roof The Gates of Hell Slap Shot Up Bedknobs and Broomsticks Bayeux Tapestry Leif The Poseidon Adventure diptych Alien Laura Roverella Altarpiece Seven Sorrows Polyptych George VI and Queen Elizabeth Memorial Christ with singing and music-making Angels El Cantante Inferno Hunnestad Monument Babes in Arms The Sound of Music Seven Wonders of the Ancient World Hamlet Space Pirate Captain Harlock baptismal font of the Siena Baptistry Danish Crown Regalia Polyptych of Certosa di Pavia Romeo + Juliet Rizal Monument Harry Potter and the Deathly Hallows – Part 2 Singin' in the Rain Black Jack Kill Bill Volume 1 A Breed Apart Rivers and Tides Chatsworth Apollo headstone folk dance Superman 1472 Polyptych Cold War Porto San Giorgio Polyptych The Witches triptych Teheran 43 Henry VI (play) Part 1-3 Monty Python's The Meaning of Life Supergirl drawing Meditation Playing for Keeps Carefree The Oldest Profession Kill Bill Volume 2 The Legend of Lucy Keyes DC Universe Animated Original Movies Albert Memorial Montefiore dell'Aso Polyptych Underworld Medals by Pisanello Tomb of Giuliano de' Medici, Duke of Nemours Ferdinand the Bull album Parthenon Frieze Madonna and Child, Saints Francis, John the Baptist, John the Evangelist and Anthony of Padua computer graphics Visions of the Hereafter Göta kanal eller Vem drog ur proppen?
Iron Man 2, Harry Potter and the Philosopher's Stone and Lucy are lesser number of works of art or abstract beings a portion of than The Arts of War and The Arts of Peace
Iron Man 2 Harry Potter and the Philosopher's Stone Lucy
action less
action union
action find_reverse_tuple_counts
relation part of
type work of art
type work of art
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
action count
action filter_multi_types
action find_reverse
entity The Arts of War and The Arts of Peace
relation part of
type work of art
type abstract being
[[{'concept': 'work of art'}, {'concept': 'abstract being'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?q < ?a ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?a ) WHERE { ?z property:part_of resource:The_Arts_of_War_and_The_Arts_of_Peace . { { ?z rdf:type ontology:work_of_art } UNION { ?z rdf:type ontology:abstract_being } } } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?p WHERE { { ?c property:part_of ?p . ?p rdf:type ontology:work_of_art . ?c rdf:type ontology:abstract_being } UNION { ?c property:part_of ?p . ?c rdf:type ontology:work_of_art . ?p rdf:type ontology:work_of_art } } GROUP BY ?p } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q6675667
P361
Q838948 Q838948 Q15619164
USER
And how about Looney Tunes: Unleashed?
(c(Q838948)|c(Q15619164),P361,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q6675667
relation P361
type Q838948
type Q15619164
[[{'concept': 'Q838948'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?w WHERE { VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q15619164 ) } . ?c rdf:type ?g } GROUP BY ?w } . FILTER ( ?d < ?h ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P361 resource:Q6675667 . { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q15619164 } } } } }
Looney Tunes: Unleashed
action less
action union
action find_reverse_tuple_counts
relation part of
type work of art
type work of art
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
action count
action filter_multi_types
action find_reverse
entity Looney Tunes: Unleashed
relation part of
type work of art
type abstract being
[[{'concept': 'work of art'}, {'concept': 'abstract being'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?w WHERE { VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:abstract_being ) } . ?c rdf:type ?g } GROUP BY ?w } . FILTER ( ?d < ?h ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:part_of resource:Looney_Tunes:_Unleashed . { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:abstract_being } } } } }
[]
work of art work of art abstract being
Q205028 Q102438 Q15624215
SYSTEM
Iron Man 2, Harry Potter and the Philosopher's Stone, Lucy
Q2312028 Q1762957 Q5723375 Q3415280 Q4143086 Q127367 Q22260775 Q193066 Q15624215 Q206400 Q2364709 Q7719555 Q372959 Q102438 Q10371896 Q18547944 Q6503493 Q3907523 Q3907489 Q29478 Q17275612 Q552002 Q19393199 Q10550583 Q934970 Q1209853 Q18609716 Q284184 Q16161848 Q215750 Q734834 Q222867 Q495954 Q733065 Q747847 Q977372 Q161687 Q1534737 Q4656518 Q1411766 Q205028 Q1623056 Q1760893 Q753449 Q4135545 Q314003 Q4110177 Q1356770 Q3193421 Q16741153 Q332368 Q3983379 Q478748 Q1195466 Q21129836 Q21129837 Q2003287 Q1752478 Q174811 Q945138 Q187483 Q6519361 Q874496 Q475476 Q103569 Q976149 Q3907478 Q1988321 Q18577910 Q3428050 Q3346699 Q472359 Q971109 Q1360347 Q632753 Q60072 Q489772 Q41567 Q7572454 Q3747490 Q1270166 Q3395799 Q7451782 Q463313 Q18217301 Q232009 Q309153 Q2905386 Q165325 Q2626332 Q7338317 Q22527805 Q203443 Q201022 Q213053 Q3907484 Q4680630 Q2089457 Q3907512 Q2661437 Q79218 Q1125687 Q20857440 Q24980 Q283134 Q93184 Q24568939 Q7203413 Q1230318 Q378838 Q928019 Q152185 Q2405799 Q281465 Q3907505 Q164804 Q16156301 Q3992615 Q1297233 Q482994 Q3087894 Q21340348 Q7600677 Q2467518 Q10512738
(c(Q838948)|c(Q15619164),P361,c(Q838948))
action less
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P361
type Q838948
type Q15619164
action count
action filter_multi_types
action find_reverse
entity Q6675667
relation P361
type Q838948
type Q15619164
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q15619164'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?w WHERE { VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q15619164 ) } . ?c rdf:type ?g } GROUP BY ?w } . FILTER ( ?d < ?h ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P361 resource:Q6675667 . { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q15619164 } } } } }
Star Spangled Rhythm Release the Prisoners to Spring Tales of an Island Dangerous Moonlight Ride The Lord of the Rings: The Fellowship of the Ring Sonar Kella Breakfast at Tiffany's Lucy The Merchant of Venice Alice Comedies The Bowman and The Spearman The Towering Inferno Harry Potter and the Philosopher's Stone Sing, Baby, Sing The Martian Law of the Sea polyptych of Saint Augustine Assumption Faust Le Tour de France dans les Pyrénées Ro.Go.Pa.G. Life of Humanity Kurt Olsson – filmen om mitt liv som mig själv Le Roi et l'oiseau Dick Tracy Scenes from the Life of the Virgin Ra.One The Arts of War and The Arts of Peace Julius Caesar Ghent Altarpiece 2 Fast 2 Furious Henry V Dabangg New Orleans New York Stories Harry Potter and the Half-Blood Prince Life A Divine Double Feature predella Iron Man 2 The Fighting Temptations Roseanna Christine Henry IV (play) Stolpersteine A Night Before Christmas Heroon Karl Liebknecht 3x3D A View to a Kill Ten Minutes Older: The Trumpet The Holiday The Man on the Roof The Arts of War The Arts of Peace The Gates of Hell Slap Shot Up Bedknobs and Broomsticks Bayeux Tapestry Leif The Poseidon Adventure diptych Alien Laura Roverella Altarpiece Seven Sorrows Polyptych George VI and Queen Elizabeth Memorial Christ with singing and music-making Angels Nymphomaniac El Cantante Inferno Hunnestad Monument Babes in Arms The Sound of Music Seven Wonders of the Ancient World Hamlet Space Pirate Captain Harlock baptismal font of the Siena Baptistry Danish Crown Regalia Polyptych of Certosa di Pavia Separate Tables Romeo + Juliet Rizal Monument Harry Potter and the Deathly Hallows – Part 2 Singin' in the Rain Black Jack Kill Bill Volume 1 A Breed Apart Rivers and Tides Chatsworth Apollo headstone folk dance Superman 1472 Polyptych Sculptural Ensemble of Constantin Brâncuși at Târgu Jiu Cold War Porto San Giorgio Polyptych The Witches triptych Teheran 43 Henry VI (play) Part 1-3 Monty Python's The Meaning of Life Supergirl drawing Meditation Playing for Keeps Carefree The Oldest Profession Kill Bill Volume 2 The Legend of Lucy Keyes DC Universe Animated Original Movies Albert Memorial Montefiore dell'Aso Polyptych Underworld Medals by Pisanello Tomb of Giuliano de' Medici, Duke of Nemours Ferdinand the Bull album Parthenon Frieze Madonna and Child, Saints Francis, John the Baptist, John the Evangelist and Anthony of Padua computer graphics Visions of the Hereafter Göta kanal eller Vem drog ur proppen?
Iron Man 2 Harry Potter and the Philosopher's Stone Lucy
action less
action union
action find_reverse_tuple_counts
relation part of
type work of art
type work of art
action find_reverse_tuple_counts
relation part of
type work of art
type abstract being
action count
action filter_multi_types
action find_reverse
entity Looney Tunes: Unleashed
relation part of
type work of art
type abstract being
[[{'concept': 'work of art'}, {'concept': 'abstract being'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?w WHERE { VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:abstract_being ) } . ?c rdf:type ?g } GROUP BY ?w } . FILTER ( ?d < ?h ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:part_of resource:Looney_Tunes:_Unleashed . { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:abstract_being } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q668 Q77
P530
Q1048835
USER
How many political territories have ambassadorial relations with India and Uruguay ?
(c(Q1048835),P530,Q668) (c(Q1048835),P530,Q77)
action count
action intersection
action filter_type
action find_reverse
entity Q668
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q77
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q668'] [{'concept': 'Q1048835'}, 'P530', 'Q77']
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:P530 resource:Q77 . ?r rdf:type ontology:Q1048835 . ?r property:P530 resource:Q668 . ?r rdf:type ontology:Q1048835 }
India Uruguay
action count
action intersection
action filter_type
action find_reverse
entity India
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Uruguay
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'India'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Uruguay']
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:diplomatic_relation resource:Uruguay . ?r rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation resource:India . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q668) (c(Q1048835),P530,Q77)
action count
action intersection
action filter_type
action find_reverse
entity Q668
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q77
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q668'] [{'concept': 'Q1048835'}, 'P530', 'Q77']
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:P530 resource:Q77 . ?r rdf:type ontology:Q1048835 . ?r property:P530 resource:Q668 . ?r rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity India
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Uruguay
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'India'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Uruguay']
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { ?r property:diplomatic_relation resource:Uruguay . ?r rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation resource:India . ?r rdf:type ontology:political_territorial_entity }
[]