Simple Question (Direct)
Simple Question
Q3770716
P1412
Q34770
USER
Which language is spoken by Giuseppe Greco ?
(Q3770716,P1412,c(Q34770))
action filter_type
action find
entity Q3770716
relation P1412
type Q34770
['Q3770716', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q34770 . resource:Q3770716 property:P1412 ?b }
Giuseppe Greco
action filter_type
action find
entity Giuseppe Greco
relation languages spoken, written or signed
type language
['Giuseppe Greco', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:language . resource:Giuseppe_Greco property:languages_spoken,_written_or_signed ?b }
[]
language
Q652
SYSTEM
Italian
Q652
(Q3770716,P1412,c(Q34770))
action filter_type
action find
entity Q3770716
relation P1412
type Q34770
Is [ANSWER] is spoken by Giuseppe Greco
['Q3770716', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q34770 . resource:Q3770716 property:P1412 ?b }
Italian
Is Italian is spoken by Giuseppe Greco
Italian
action filter_type
action find
entity Giuseppe Greco
relation languages spoken, written or signed
type language
['Giuseppe Greco', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:language . resource:Giuseppe_Greco property:languages_spoken,_written_or_signed ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3770716
P19
Q56061
USER
Which administrative territory was Giuseppe Greco born at ?
(Q3770716,P19,c(Q56061))
action filter_type
action find
entity Q3770716
relation P19
type Q56061
['Q3770716', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3770716 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Giuseppe Greco
action filter_type
action find
entity Giuseppe Greco
relation place of birth
type administrative territorial entity
['Giuseppe Greco', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Giuseppe_Greco property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q71628
SYSTEM
Arzano
Q71628
(Q3770716,P19,c(Q56061))
action filter_type
action find
entity Q3770716
relation P19
type Q56061
Giuseppe Greco was born Greco [ANSWER]
['Q3770716', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q3770716 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Arzano
Giuseppe Greco was born Greco Arzano
Arzano
action filter_type
action find
entity Giuseppe Greco
relation place of birth
type administrative territorial entity
['Giuseppe Greco', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Giuseppe_Greco property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3770716
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q71628,P39,c(Q12737077))
action filter_type
action find
entity Q3770716
relation P39
type Q12737077
['Q71628', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3770716 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Giuseppe Greco
action filter_type
action find
entity Giuseppe Greco
relation position held
type occupation
['Arzano', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Giuseppe_Greco property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q18558478
SYSTEM
member of the Chamber of Deputies of the Italian Republic
Q18558478
(Q71628,P39,c(Q12737077))
action filter_type
action find
entity Q3770716
relation P39
type Q12737077
[ANSWER] was a position held by that person
['Q71628', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3770716 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
member of the Chamber of Deputies of the Italian Republic
Member of the Chamber of Deputies of the Italian Republic was a position held by that person
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity Giuseppe Greco
relation position held
type occupation
['Arzano', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Giuseppe_Greco property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q71628
P47
Q56061 Q15617994
USER
How many administrative territories or administrative territories are adjacent to Arzano ?
(Q71628,P47,c(Q56061)) (Q71628,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q71628
relation P47
type Q56061
action filter_type
action find
entity Q71628
relation P47
type Q15617994
['Q71628', 'P47', {'concept': 'Q56061'}] ['Q71628', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { resource:Q71628 property:P47 ?p . ?p rdf:type ontology:Q56061 } UNION { resource:Q71628 property:P47 ?p . ?p rdf:type ontology:Q15617994 } }
Arzano
action count
action union
action filter_type
action find
entity Arzano
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Arzano
relation shares border with
type designation for an administrative territorial entity
['Arzano', 'shares border with', {'concept': 'administrative territorial entity'}] ['Arzano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { resource:Arzano property:shares_border_with ?p . ?p rdf:type ontology:administrative_territorial_entity } UNION { resource:Arzano property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
6
Q72130 Q71967 Q71945 Q72118 Q72009 Q2634
(Q71628,P47,c(Q56061)) (Q71628,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q71628
relation P47
type Q56061
action filter_type
action find
entity Q71628
relation P47
type Q15617994
[ANSWER]
['Q71628', 'P47', {'concept': 'Q56061'}] ['Q71628', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { resource:Q71628 property:P47 ?p . ?p rdf:type ontology:Q56061 } UNION { resource:Q71628 property:P47 ?p . ?p rdf:type ontology:Q15617994 } }
Grumo Nevano Casavatore Casandrino Frattamaggiore Casoria Naples
6
action count
action union
action filter_type
action find
entity Arzano
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Arzano
relation shares border with
type designation for an administrative territorial entity
['Arzano', 'shares border with', {'concept': 'administrative territorial entity'}] ['Arzano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { resource:Arzano property:shares_border_with ?p . ?p rdf:type ontology:administrative_territorial_entity } UNION { resource:Arzano property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q959790 Q652
P136 P364
Q838948
USER
Which works of art were done in Italian language during their inception and have crime film as genre ?
AND((c(Q838948),P364,Q652), (c(Q838948),P136,Q959790))
action filter_type
action intersection
action find_reverse
entity Q652
relation P364
action find_reverse
entity Q959790
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P364', 'Q652'], [{'concept': 'Q838948'}, 'P136', 'Q959790']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q838948 . ?y property:P364 resource:Q652 . ?y property:P136 resource:Q959790 }
crime film Italian
action filter_type
action intersection
action find_reverse
entity Italian
relation original language of work
action find_reverse
entity crime film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'original language of work', 'Italian'], [{'concept': 'work of art'}, 'genre', 'crime film']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:work_of_art . ?y property:original_language_of_work resource:Italian . ?y property:genre resource:crime_film }
[]
work of art
Q47703 Q1724222 Q3699454 Q3548745 Q1783832 Q629819 Q706592 Q1192773 Q2863634 Q18438902
SYSTEM
Some of them are The Godfather, L'ultima chance, Heartless, A Dangerous Toy, Salvatore Giuliano, Danger: Diabolik, The Cat o' Nine Tails, Confessions of a Police Captain, The Goodbye Kiss, The Killers Are Our Guests
Q903459 Q3819525 Q894172 Q18438902 Q3699454 Q46386 Q3664346 Q3015801 Q3698435 Q913440 Q3976849 Q1724222 Q3821812 Q3857813 Q1165770 Q3793613 Q3978441 Q629975 Q3790865 Q232166 Q3054570 Q705887 Q38815 Q429441 Q18403 Q3820046 Q509799 Q2914036 Q3548479 Q3801173 Q706592 Q3933980 Q957509 Q586310 Q3613357 Q1118503 Q678035 Q754745 Q3694690 Q4004117 Q3762370 Q1115555 Q1029687 Q3820963 Q3820033 Q1420968 Q1192783 Q951734 Q947059 Q13423994 Q1150713 Q3062718 Q1062054 Q3395251 Q1192773 Q18288858 Q1052328 Q3821986 Q3683747 Q3819549 Q3695854 Q3232082 Q18170680 Q130142 Q3614548 Q47703 Q547226 Q3757423 Q3012624 Q2400117 Q1783832 Q16165890 Q1127709 Q3958324 Q3204494 Q1051032 Q3822998 Q1131565 Q81845 Q1135683 Q206388 Q3221640 Q3797045 Q2707950 Q3793487 Q3796049 Q3223255 Q3824921 Q1102351 Q5135322 Q1856418 Q1299410 Q3754344 Q1747499 Q3693615 Q3448093 Q2863634 Q2659421 Q683563 Q3930514 Q1262927 Q18209542 Q3793577 Q3548745 Q3686304 Q3708005 Q4004435 Q3147091 Q629819 Q837852 Q4004122
AND((c(Q838948),P364,Q652), (c(Q838948),P136,Q959790))
action filter_type
action intersection
action find_reverse
entity Q652
relation P364
action find_reverse
entity Q959790
relation P136
type Q838948
The Godfather, L'ultima chance, Heartless, A Dangerous Toy, Salvatore Giuliano, Danger: Diabolik, The Cat o' Nine Tails, Confessions of a Police Captain, The Goodbye Kiss and The Killers are Our Guests were done in Italian language during their inception and have crime film as genre
{'AND': [[{'concept': 'Q838948'}, 'P364', 'Q652'], [{'concept': 'Q838948'}, 'P136', 'Q959790']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q838948 . ?y property:P364 resource:Q652 . ?y property:P136 resource:Q959790 }
Downtown The Case Is Closed, Forget It Borsalino The Killers Are Our Guests Heartless L'imprevisto Cemento armato Fearless Crime News The Man Who Wasn't There On My Skin L'ultima chance La Città si difende Bloody Payroll Gomorrah The Last Round Wake Up and Die The Tourist Days of Inspector Ambrosio Crime Busters Double Murder Heaven Il giorno della civetta La Orca Il bidone The Man of Glass The Boondock Saints La banda Casaroli The Cop Io ho paura The Cat o' Nine Tails Revolver The Moro Affair Shoeshine Other Men From Corleone to Brooklyn The Cop in Blue Jeans Irréversible Before the Jury Ripped Off Giallo a Venezia Audace colpo dei soliti ignoti Gang War in Naples The Black Hand Manhunt in the City The Hassled Hooker Le clan des siciliens Cento giorni a Palermo Roma come Chicago Your Turn to Die Summer of Sam Detective Belli Super Fuzz The Rebel Confessions of a Police Captain Perez. Number One The Bodyguard's Cure The Syndicate: A Death in the Family The Scent of the Night So Sweet... So Perverse Seven Deaths in the Cat's Eye Without Pity Miller's Crossing Amore che vieni The Godfather Ossessione Galantuomini Paura in città Blue Jeans Salvatore Giuliano Dark Love True Romance Seven Hours of Violence Death Rage The Italian Job The Bloody Hands of the Law Policemen Vallanzasca - Angels of Evil Violent Rome Once Upon a Time in America Maigret a Pigalle Chronicle of a Homicide Secret Agent Super Dragon The Cobra The Testimony La polizia sta a guardare La violenza: quinto potere The Sunday Woman Closed Circuit Rififi Investigation of a Citizen Above Suspicion The Opium Den La commare secca Corleone Emanuelle and the White Slave Trade The Goodbye Kiss Evilenko Gasoline Raul: Straight to Kill Polisse Return of the 38 Gang Counselor at Crime A Dangerous Toy Concorde Affaire '79 Mean Frank and Crazy Tony Una sull'altra Seagulls Fly Low Danger: Diabolik Contraband Un uomo in ginocchio
The Godfather, L'ultima chance, Heartless, A Dangerous Toy, Salvatore Giuliano, Danger: Diabolik, The Cat o' Nine Tails, Confessions of a Police Captain, The Goodbye Kiss and The Killers are Our Guests were done in Italian language during their inception and have crime film as genre
The Godfather L'ultima chance Heartless A Dangerous Toy Salvatore Giuliano Danger: Diabolik The Cat o' Nine Tails Confessions of a Police Captain The Goodbye Kiss The Killers Are Our Guests
action filter_type
action intersection
action find_reverse
entity Italian
relation original language of work
action find_reverse
entity crime film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'original language of work', 'Italian'], [{'concept': 'work of art'}, 'genre', 'crime film']]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:work_of_art . ?y property:original_language_of_work resource:Italian . ?y property:genre resource:crime_film }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q842256 Q959790
P136
Q838948
USER
Which works of art have crime film and musical film as genre ?
AND((c(Q838948),P136,Q959790), (c(Q838948),P136,Q842256))
action filter_type
action intersection
action find_reverse
entity Q959790
relation P136
action find_reverse
entity Q842256
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P136', 'Q959790'], [{'concept': 'Q838948'}, 'P136', 'Q842256']]}
SELECT DISTINCT ?n WHERE { ?n property:P136 resource:Q959790 . ?n property:P136 resource:Q842256 . ?n rdf:type ontology:Q838948 }
musical film crime film
action filter_type
action intersection
action find_reverse
entity crime film
relation genre
action find_reverse
entity musical film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'genre', 'crime film'], [{'concept': 'work of art'}, 'genre', 'musical film']]}
SELECT DISTINCT ?n WHERE { ?n property:genre resource:crime_film . ?n property:genre resource:musical_film . ?n rdf:type ontology:work_of_art }
[]
work of art
Q2620294 Q7294331 Q3282624 Q1445520 Q19818737 Q7975772 Q7539982 Q2907343 Q274895 Q576909
SYSTEM
Some of them are Before I Self Destruct, Rappin', Murder at the Vanities, Pete Kelly's Blues, The Street Song, Way Down South, Sleepy Lagoon, Blues in the Night, 8 Women, The Harder They Come
Q821767 Q2907343 Q7294331 Q1022357 Q7539982 Q644250 Q576909 Q7975772 Q2620294 Q1471244 Q274895 Q3282624 Q1445520 Q6907527 Q639387 Q19818737 Q742378
AND((c(Q838948),P136,Q959790), (c(Q838948),P136,Q842256))
action filter_type
action intersection
action find_reverse
entity Q959790
relation P136
action find_reverse
entity Q842256
relation P136
type Q838948
Before I Self Destruct, Rappin', Murder at the Vanities, Pete Kelly's Blues, The Street Song, Way Down South, Sleepy Lagoon, Blues in the Night, 8 Women and The Harder They come have crime film and musical film as genre
{'AND': [[{'concept': 'Q838948'}, 'P136', 'Q959790'], [{'concept': 'Q838948'}, 'P136', 'Q842256']]}
SELECT DISTINCT ?n WHERE { ?n property:P136 resource:Q959790 . ?n property:P136 resource:Q842256 . ?n rdf:type ontology:Q838948 }
Wonder Bar Blues in the Night Rappin' C.I.D. Sleepy Lagoon Idlewild The Harder They Come Way Down South Before I Self Destruct Robin and the 7 Hoods 8 Women Murder at the Vanities Pete Kelly's Blues Moon Over Harlem The Cotton Club The Street Song I Want You
Before I Self Destruct, Rappin', Murder at the Vanities, Pete Kelly's Blues, The Street Song, Way Down South, Sleepy Lagoon, Blues in the Night, 8 Women and The Harder They come have crime film and musical film as genre
Before I Self Destruct Rappin' Murder at the Vanities Pete Kelly's Blues The Street Song Way Down South Sleepy Lagoon Blues in the Night 8 Women The Harder They Come
action filter_type
action intersection
action find_reverse
entity crime film
relation genre
action find_reverse
entity musical film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'genre', 'crime film'], [{'concept': 'work of art'}, 'genre', 'musical film']]}
SELECT DISTINCT ?n WHERE { ?n property:genre resource:crime_film . ?n property:genre resource:musical_film . ?n rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q274895
P272
Q4830453
USER
Who was the producer of that work of art ?
(Q274895,P272,c(Q4830453))
action filter_type
action find
entity Q274895
relation P272
type Q4830453
['Q274895', 'P272', {'concept': 'Q4830453'}]
SELECT DISTINCT ?e WHERE { resource:Q274895 property:P272 ?e . ?e rdf:type ontology:Q4830453 }
8 Women
action filter_type
action find
entity 8 Women
relation production company
type business enterprise
['8 Women', 'production company', {'concept': 'business enterprise'}]
SELECT DISTINCT ?e WHERE { resource:8_Women property:production_company ?e . ?e rdf:type ontology:business_enterprise }
[]
business enterprise
Clarification for simple ques.
Q19818737
SYSTEM
Did you mean The Street Song ?
Q2620294 Q7294331 Q3282624 Q1445520 Q19818737 Q7975772 Q7539982 Q2907343 Q274895 Q576909
(Q2620294,P272,c(Q4830453)) (Q7294331,P272,c(Q4830453)) (Q3282624,P272,c(Q4830453)) (Q1445520,P272,c(Q4830453)) (Q19818737,P272,c(Q4830453)) (Q7975772,P272,c(Q4830453)) (Q7539982,P272,c(Q4830453)) (Q2907343,P272,c(Q4830453)) (Q274895,P272,c(Q4830453)) (Q576909,P272,c(Q4830453))
[ANSWER]
['Q2620294', 'P272', {'concept': 'Q4830453'}] ['Q7294331', 'P272', {'concept': 'Q4830453'}] ['Q3282624', 'P272', {'concept': 'Q4830453'}] ['Q1445520', 'P272', {'concept': 'Q4830453'}] ['Q19818737', 'P272', {'concept': 'Q4830453'}] ['Q7975772', 'P272', {'concept': 'Q4830453'}] ['Q7539982', 'P272', {'concept': 'Q4830453'}] ['Q2907343', 'P272', {'concept': 'Q4830453'}] ['Q274895', 'P272', {'concept': 'Q4830453'}] ['Q576909', 'P272', {'concept': 'Q4830453'}]
SELECT DISTINCT ?e WHERE { resource:Q274895 property:P272 ?e . ?e rdf:type ontology:Q4830453 }
Before I Self Destruct Rappin' Murder at the Vanities Pete Kelly's Blues The Street Song Way Down South Sleepy Lagoon Blues in the Night 8 Women The Harder They Come
Did you mean The Street Song ?
The Street Song
['Before I Self Destruct', 'production company', {'concept': 'business enterprise'}] ["Rappin'", 'production company', {'concept': 'business enterprise'}] ['Murder at the Vanities', 'production company', {'concept': 'business enterprise'}] ["Pete Kelly's Blues", 'production company', {'concept': 'business enterprise'}] ['The Street Song', 'production company', {'concept': 'business enterprise'}] ['Way Down South', 'production company', {'concept': 'business enterprise'}] ['Sleepy Lagoon', 'production company', {'concept': 'business enterprise'}] ['Blues in the Night', 'production company', {'concept': 'business enterprise'}] ['8 Women', 'production company', {'concept': 'business enterprise'}] ['The Harder They Come', 'production company', {'concept': 'business enterprise'}]
SELECT DISTINCT ?e WHERE { resource:8_Women property:production_company ?e . ?e rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
USER
No, I meant 8 Women. Could you tell me the answer for that?
(Q274895,P272,c(Q4830453))
Q274895
['Q274895', 'P272', {'concept': 'Q4830453'}]
['8 Women', 'production company', {'concept': 'business enterprise'}]
[]
Q1032540
SYSTEM
Canal+
Q1032540
(Q274895,P272,c(Q4830453))
action filter_type
action find
entity Q274895
relation P272
type Q4830453
The producer of that work of art was [ANSWER]
['Q274895', 'P272', {'concept': 'Q4830453'}]
SELECT DISTINCT ?e WHERE { resource:Q274895 property:P272 ?e . ?e rdf:type ontology:Q4830453 }
Canal+
The producer of that work of art was Canal+
Canal+
action filter_type
action find
entity 8 Women
relation production company
type business enterprise
['8 Women', 'production company', {'concept': 'business enterprise'}]
SELECT DISTINCT ?e WHERE { resource:8_Women property:production_company ?e . ?e rdf:type ontology:business_enterprise }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1032540 Q33
P17
Q15617994
USER
Is that business enterprise situated in Finland ?
(Q1032540,P17,Q33)
action is_in
entity Q33
action find
entity Q1032540
relation P17
['Q1032540', 'P17', 'Q33']
ASK WHERE { resource:Q1032540 property:P17 resource:Q33 }
Canal+ Finland
action is_in
entity Finland
action find
entity Canal+
relation country
['Canal+', 'country', 'Finland']
ASK WHERE { resource:Canal+ property:country resource:Finland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1032540,P17,Q33)
action is_in
entity Q33
action find
entity Q1032540
relation P17
[ANSWER]
['Q1032540', 'P17', 'Q33']
ASK WHERE { resource:Q1032540 property:P17 resource:Q33 }
Yes
action is_in
entity Finland
action find
entity Canal+
relation country
['Canal+', 'country', 'Finland']
ASK WHERE { resource:Canal+ property:country resource:Finland }
[]