Simple Question (Direct)
Simple Question
Q277456
P47
Q15617994
USER
Which administrative territories have a shared border with Castropignano ?
(Q277456,P47,c(Q15617994))
action filter_type
action find
entity Q277456
relation P47
type Q15617994
['Q277456', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q277456 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
Castropignano
action filter_type
action find
entity Castropignano
relation shares border with
type designation for an administrative territorial entity
['Castropignano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Castropignano property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q3497 Q277651 Q278282
SYSTEM
Campobasso, Limosano, Torella del Sannio
Q277946 Q277651 Q277431 Q278282 Q277839 Q277580 Q3497 Q277383
(Q277456,P47,c(Q15617994))
action filter_type
action find
entity Q277456
relation P47
type Q15617994
[ANSWERS] have a shared border with Castropignano
['Q277456', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q277456 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
Ripalimosani Limosano Casalciprano Torella del Sannio Oratino Fossalto Campobasso Busso
Campobasso, Limosano and Torella del Sannio have a shared border with Castropignano
Campobasso Limosano Torella del Sannio
action filter_type
action find
entity Castropignano
relation shares border with
type designation for an administrative territorial entity
['Castropignano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Castropignano property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q277651
P19
Q502895
USER
Which person was born at that administrative territory ?
(c(Q502895),P19,Q277651)
action filter_type
action find_reverse
entity Q277651
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q277651']
SELECT DISTINCT ?d WHERE { ?d property:P19 resource:Q277651 . ?d rdf:type ontology:Q502895 }
Limosano
action filter_type
action find_reverse
entity Limosano
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Limosano']
SELECT DISTINCT ?d WHERE { ?d property:place_of_birth resource:Limosano . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q277651
SYSTEM
Did you mean Limosano ?
Q3497 Q277651 Q278282
(c(Q502895),P19,Q3497) (c(Q502895),P19,Q277651) (c(Q502895),P19,Q278282)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q3497'] [{'concept': 'Q502895'}, 'P19', 'Q277651'] [{'concept': 'Q502895'}, 'P19', 'Q278282']
SELECT DISTINCT ?d WHERE { ?d property:P19 resource:Q277651 . ?d rdf:type ontology:Q502895 }
Campobasso Limosano Torella del Sannio
Did you mean Limosano ?
Limosano
[{'concept': 'common name'}, 'place of birth', 'Campobasso'] [{'concept': 'common name'}, 'place of birth', 'Limosano'] [{'concept': 'common name'}, 'place of birth', 'Torella del Sannio']
SELECT DISTINCT ?d WHERE { ?d property:place_of_birth resource:Limosano . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P19,Q277651)
[{'concept': 'Q502895'}, 'P19', 'Q277651']
[{'concept': 'common name'}, 'place of birth', 'Limosano']
[]
Q16564663
SYSTEM
Igino Petrone
Q16564663
(c(Q502895),P19,Q277651)
action filter_type
action find_reverse
entity Q277651
relation P19
type Q502895
[ANSWER] was born at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q277651']
SELECT DISTINCT ?d WHERE { ?d property:P19 resource:Q277651 . ?d rdf:type ontology:Q502895 }
Igino Petrone
Igino Petrone was born at that administrative territory
Igino Petrone
action filter_type
action find_reverse
entity Limosano
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Limosano']
SELECT DISTINCT ?d WHERE { ?d property:place_of_birth resource:Limosano . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16564663
P27
Q7275
USER
Which state does that person belong to ?
(Q16564663,P27,c(Q7275))
action filter_type
action find
entity Q16564663
relation P27
type Q7275
['Q16564663', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7275 . resource:Q16564663 property:P27 ?i }
Igino Petrone
action filter_type
action find
entity Igino Petrone
relation country of citizenship
type state
['Igino Petrone', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:state . resource:Igino_Petrone property:country_of_citizenship ?i }
[]
state
Q172579
SYSTEM
Kingdom of Italy
Q172579
(Q16564663,P27,c(Q7275))
action filter_type
action find
entity Q16564663
relation P27
type Q7275
That person belongs to [ANSWER]
['Q16564663', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7275 . resource:Q16564663 property:P27 ?i }
Kingdom of Italy
That person belongs to Kingdom of Italy
Kingdom of Italy
action filter_type
action find
entity Igino Petrone
relation country of citizenship
type state
['Igino Petrone', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:state . resource:Igino_Petrone property:country_of_citizenship ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172579
P19
Q502895
USER
Which people have place of birth as that state ?
(c(Q502895),P19,Q172579)
action filter_type
action find_reverse
entity Q172579
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q172579']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P19 resource:Q172579 }
Kingdom of Italy
action filter_type
action find_reverse
entity Kingdom of Italy
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Kingdom of Italy']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:place_of_birth resource:Kingdom_of_Italy }
[]
common name
Q268220 Q570794
SYSTEM
Orazio Pierozzi, Ida Dalser
Q268220 Q570794
(c(Q502895),P19,Q172579)
action filter_type
action find_reverse
entity Q172579
relation P19
type Q502895
[ANSWERS] have place of birth as that state
[{'concept': 'Q502895'}, 'P19', 'Q172579']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P19 resource:Q172579 }
Orazio Pierozzi Ida Dalser
Orazio Pierozzi and Ida Dalser have place of birth as that state
Orazio Pierozzi Ida Dalser
action filter_type
action find_reverse
entity Kingdom of Italy
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Kingdom of Italy']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:place_of_birth resource:Kingdom_of_Italy }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q172579
P1346
Q1190554
USER
Which events were won by Kingdom of Italy ?
(c(Q1190554),P1346,Q172579)
action filter_type
action find_reverse
entity Q172579
relation P1346
type Q1190554
[{'concept': 'Q1190554'}, 'P1346', 'Q172579']
SELECT DISTINCT ?m WHERE { ?m property:P1346 resource:Q172579 . ?m rdf:type ontology:Q1190554 }
Kingdom of Italy
action filter_type
action find_reverse
entity Kingdom of Italy
relation winner
type event
[{'concept': 'event'}, 'winner', 'Kingdom of Italy']
SELECT DISTINCT ?m WHERE { ?m property:winner resource:Kingdom_of_Italy . ?m rdf:type ontology:event }
[]
event
Q2887840 Q4871088
SYSTEM
Battle of Amba Aradam, Battle of Genale Doria
Q2887840 Q4871088
(c(Q1190554),P1346,Q172579)
action filter_type
action find_reverse
entity Q172579
relation P1346
type Q1190554
The [ANSWERS] were won by Kingdom of Italy
[{'concept': 'Q1190554'}, 'P1346', 'Q172579']
SELECT DISTINCT ?m WHERE { ?m property:P1346 resource:Q172579 . ?m rdf:type ontology:Q1190554 }
Battle of Amba Aradam Battle of Genale Doria
The Battle of Amba Aradam and Battle of Genale Doria were won by Kingdom of Italy
Battle of Amba Aradam Battle of Genale Doria
action filter_type
action find_reverse
entity Kingdom of Italy
relation winner
type event
[{'concept': 'event'}, 'winner', 'Kingdom of Italy']
SELECT DISTINCT ?m WHERE { ?m property:winner resource:Kingdom_of_Italy . ?m rdf:type ontology:event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172579
P35
Q502895
USER
Which people are the heads of state of that one ?
(Q2887840,P35,c(Q502895)) (Q4871088,P35,c(Q502895))
action filter_type
action find
entity Q172579
relation P35
type Q502895
['Q2887840', 'P35', {'concept': 'Q502895'}] ['Q4871088', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q172579 property:P35 ?c . ?c rdf:type ontology:Q502895 }
Kingdom of Italy
action filter_type
action find
entity Kingdom of Italy
relation head of state
type common name
['Battle of Amba Aradam', 'head of state', {'concept': 'common name'}] ['Battle of Genale Doria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Kingdom_of_Italy property:head_of_state ?c . ?c rdf:type ontology:common_name }
[]
common name
Q150642 Q187149 Q168691
SYSTEM
Vittorio Emanuele III, Umberto II of Italy, Victor Emmanuel II of Savoy
Q150642 Q168691 Q187149 Q153688
(Q2887840,P35,c(Q502895)) (Q4871088,P35,c(Q502895))
action filter_type
action find
entity Q172579
relation P35
type Q502895
[ANSWERS] are the heads of state of that one
['Q2887840', 'P35', {'concept': 'Q502895'}] ['Q4871088', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q172579 property:P35 ?c . ?c rdf:type ontology:Q502895 }
Vittorio Emanuele III Victor Emmanuel II of Savoy Umberto II of Italy Umberto I of Italy
Vittorio Emanuele III, Umberto II of Italy and Victor Emmanuel II of Savoy are the heads of state of that one
Vittorio Emanuele III Umberto II of Italy Victor Emmanuel II of Savoy
action filter_type
action find
entity Kingdom of Italy
relation head of state
type common name
['Battle of Amba Aradam', 'head of state', {'concept': 'common name'}] ['Battle of Genale Doria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Kingdom_of_Italy property:head_of_state ?c . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q11424
USER
How many films have been dubbed by atmost 26 people ?
(c(Q11424),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q11424
type Q502895
value 26
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?v ) WHERE { ?c rdf:type ontology:Q502895 . ?p rdf:type ontology:Q11424 . ?p property:P725 ?c } GROUP BY ?p } . FILTER ( ?v <= 26 ) }
action count
action atmost
action find_tuple_counts
relation voice actor
type film
type common name
value 26
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?v ) WHERE { ?c rdf:type ontology:common_name . ?p rdf:type ontology:film . ?p property:voice_actor ?c } GROUP BY ?p } . FILTER ( ?v <= 26 ) }
[]
common name film
SYSTEM
89
Q1235519 Q378913 Q4499813 Q3038714 Q191753 Q6929072 Q1138751 Q785294 Q6296387 Q204662 Q521082 Q713543 Q1764174 Q752301 Q270470 Q334132 Q449917 Q909740 Q842306 Q4341553 Q1491010 Q215518 Q156401 Q1160649 Q134430 Q215617 Q811980 Q254671 Q2918397 Q853718 Q374431 Q12084660 Q578595 Q933887 Q329316 Q44817 Q29355 Q9019373 Q223359 Q213787 Q611739 Q980041 Q2898231 Q1418615 Q785363 Q869741 Q3588859 Q371490 Q1656435 Q3836716 Q1032225 Q264873 Q249967 Q19090 Q4189838 Q184701 Q943192 Q2059996 Q1361113 Q736731 Q318428 Q465275 Q218894 Q15270775 Q172284 Q202371 Q40302 Q19703751 Q189875 Q1513926 Q336012 Q43051 Q2299779 Q1494230 Q917278 Q1406374 Q2068444 Q498434 Q199839 Q36479 Q1634740 Q39722 Q40895 Q3190021 Q1102410 Q543486 Q3226633 Q1195096 Q240852
(c(Q11424),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q11424
type Q502895
value 26
[ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?v ) WHERE { ?c rdf:type ontology:Q502895 . ?p rdf:type ontology:Q11424 . ?p property:P725 ?c } GROUP BY ?p } . FILTER ( ?v <= 26 ) }
Panda and the Magic Serpent The Lord of the Rings Home Lucky Luke: The Daltons on the Run Cinderella Mr. Peabody & Sherman The Plague Dogs Captain of the Forest Rio 2 The Sword in the Stone Szaffi Cat City Quest for Camelot Flushed Away Peter Pan The Great Mouse Detective The Chipmunk Adventure Krabat – The Sorcerer's Apprentice Saludos Amigos Pinocchio Tintin and the Lake of Sharks Aladdin Chicken Run Mattie the Goose-boy Snow White and the Seven Dwarfs Sleeping Beauty The Adventures of Lolo the Penguin Coonskin The Bugs Bunny/Road Runner Movie Fun and Fancy Free The Tigger Movie The Princess and the Goblin Paprika Tintin and the Temple of the Sun The Black Cauldron The Little Fox Space Dogs The Legend of the North Wind Rio The Hunchback of Notre Dame The Ballad of the Daltons The Adventures of Tintin The Real Shlemiel Fritz the Cat The Time Masters Melody Time Emilie Jolie Son of the White Mare Ico, the Brave Horse The Looney Looney Looney Bugs Bunny Movie Foam Bath Willy the Sparrow Hotel Transylvania Robin Hood Starchaser: The Legend of Orin The Aristocats Fantasia My Little Pony: The Movie Pooh's Heffalump Movie The Three Caballeros Wallace & Gromit: The Curse of the Were-Rabbit Fantastic Mr. Fox Pocahontas Hotel Transylvania 2 Lady and the Tramp The Rescuers Down Under The Fox and the Hound Millionaire Dogs Alice in Wonderland Magic Boy The Girl Who Leapt Through Time Bambi Animal Farms Garfield Gets Real Tokyo Godfathers Piglet's Big Movie Felix the Cat: The Movie The Many Adventures of Winnie the Pooh The Jungle Book The Lion King Jungledyret Hugo The Rescuers Dumbo Jungledyret Hugo - den store filmhelt Johnny Corncob Daisy Town Renart the Fox Havoc in Heaven FernGully: The Last Rainforest
89
action count
action atmost
action find_tuple_counts
relation voice actor
type film
type common name
value 26
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?v ) WHERE { ?c rdf:type ontology:common_name . ?p rdf:type ontology:film . ?p property:voice_actor ?c } GROUP BY ?p } . FILTER ( ?v <= 26 ) }
[]