Simple Question (Direct)
Simple Question
Q53224
P47
Q15617994
USER
Who share the border with Basiliano ?
(Q53224,P47,c(Q15617994))
action filter_type
action find
entity Q53224
relation P47
type Q15617994
['Q53224', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q53224 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
Basiliano
action filter_type
action find
entity Basiliano
relation shares border with
type designation for an administrative territorial entity
['Basiliano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Basiliano property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q53246 Q53258 Q53314
SYSTEM
Codroipo, Fagagna, Pozzuolo del Friuli
Q53246 Q53258 Q53314 Q53304 Q53232 Q53281 Q53283 Q53271
(Q53224,P47,c(Q15617994))
action filter_type
action find
entity Q53224
relation P47
type Q15617994
[ANSWERS] share the border with Basiliano
['Q53224', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q53224 property:P47 ?j . ?j rdf:type ontology:Q15617994 }
Codroipo Fagagna Pozzuolo del Friuli Pasian di Prato Campoformido Martignacco Mereto di Tomba Lestizza
Codroipo, Fagagna and Pozzuolo del Friuli share the border with Basiliano
Codroipo Fagagna Pozzuolo del Friuli
action filter_type
action find
entity Basiliano
relation shares border with
type designation for an administrative territorial entity
['Basiliano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Basiliano property:shares_border_with ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q53246 Q53258 Q53314
P19
Q502895
USER
Who have location of birth at Codroipo, Fagagna and Pozzuolo del Friuli ?
(c(Q502895),P19,Q53246) (c(Q502895),P19,Q53258) (c(Q502895),P19,Q53314)
action union
action filter_type
action find_reverse
entity Q53246
relation P19
type Q502895
action filter_type
action find_reverse
entity Q53258
relation P19
type Q502895
action filter_type
action find_reverse
entity Q53314
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q53246'] [{'concept': 'Q502895'}, 'P19', 'Q53258'] [{'concept': 'Q502895'}, 'P19', 'Q53314']
SELECT DISTINCT ?c WHERE { { ?c property:P19 resource:Q53258 . ?c rdf:type ontology:Q502895 } UNION { ?c property:P19 resource:Q53246 . ?c rdf:type ontology:Q502895 } }
Codroipo Fagagna Pozzuolo del Friuli
action union
action filter_type
action find_reverse
entity Codroipo
relation place of birth
type common name
action filter_type
action find_reverse
entity Fagagna
relation place of birth
type common name
action filter_type
action find_reverse
entity Pozzuolo del Friuli
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Codroipo'] [{'concept': 'common name'}, 'place of birth', 'Fagagna'] [{'concept': 'common name'}, 'place of birth', 'Pozzuolo del Friuli']
SELECT DISTINCT ?c WHERE { { ?c property:place_of_birth resource:Fagagna . ?c rdf:type ontology:common_name } UNION { ?c property:place_of_birth resource:Codroipo . ?c rdf:type ontology:common_name } }
[]
common name
Q1615216 Q987684 Q3749574
SYSTEM
Gianfranco Cinello, Antonio Bacchetti, Francesco Arnaldi
Q18811914 Q18220775 Q3882773 Q5615056 Q3703251 Q16560640 Q3877198 Q3780000 Q3765613 Q3766608 Q19862478 Q18341853 Q21209109 Q3055551 Q3759775 Q2245916 Q987684 Q3725903 Q511512 Q3749574 Q1615216 Q3763320 Q3903755 Q1388868 Q3756623 Q1390563 Q4007883 Q3764383 Q20007518 Q3839685 Q3723033 Q3997459 Q3839150 Q3921831 Q3621854 Q16594563
(c(Q502895),P19,Q53246) (c(Q502895),P19,Q53258) (c(Q502895),P19,Q53314)
action union
action filter_type
action find_reverse
entity Q53246
relation P19
type Q502895
action filter_type
action find_reverse
entity Q53258
relation P19
type Q502895
action filter_type
action find_reverse
entity Q53314
relation P19
type Q502895
[ANSWERS] have location of birth at Codroipo, Fagagna and Pozzuolo del Friuli
[{'concept': 'Q502895'}, 'P19', 'Q53246'] [{'concept': 'Q502895'}, 'P19', 'Q53258'] [{'concept': 'Q502895'}, 'P19', 'Q53314']
SELECT DISTINCT ?c WHERE { { ?c property:P19 resource:Q53258 . ?c rdf:type ontology:Q502895 } UNION { ?c property:P19 resource:Q53246 . ?c rdf:type ontology:Q502895 } }
Carlo Del Re Pietro Venuti Onorio Cengarle Guerrino Boatto David Marchetti Giuseppe Bianchi Nino Marchetti Gustavo Zanin Giorgio Morettuzzo Giovanni Battista Candotti Arnaldo Baracetti Francesco Marsich Renzo Tubaro Enzo Zamparini Gennarino Ottogalli Ivan Cudin Antonio Bacchetti Enrico Matteo Zuzzi Moira Orfei Francesco Arnaldi Gianfranco Cinello Gianluigi D'Orlandi Pietro Carlo Antonio Ciani Lamberto Zannier Gabriele Luigi Pecile Fabio Maria Asquini Valerio Giacomini Gillo da Villalta Giuseppe Tonello Luigi Geatti Elio Gigante Tranquillo Marangoni Ludovico Tubaro Primo Germano Ardemio Marangoni Ranieri Galluzzo
Gianfranco Cinello, Antonio Bacchetti and Francesco Arnaldi have location of birth at Codroipo, Fagagna and Pozzuolo del Friuli
Gianfranco Cinello Antonio Bacchetti Francesco Arnaldi
action union
action filter_type
action find_reverse
entity Codroipo
relation place of birth
type common name
action filter_type
action find_reverse
entity Fagagna
relation place of birth
type common name
action filter_type
action find_reverse
entity Pozzuolo del Friuli
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Codroipo'] [{'concept': 'common name'}, 'place of birth', 'Fagagna'] [{'concept': 'common name'}, 'place of birth', 'Pozzuolo del Friuli']
SELECT DISTINCT ?c WHERE { { ?c property:place_of_birth resource:Fagagna . ?c rdf:type ontology:common_name } UNION { ?c property:place_of_birth resource:Codroipo . ?c rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1615216 Q987684 Q3749574
P27
Q15617994
USER
Which administrative territories are Gianfranco Cinello, Antonio Bacchetti and Francesco Arnaldi an inhabitant of ?
(Q1615216,P27,c(Q15617994)) (Q987684,P27,c(Q15617994)) (Q3749574,P27,c(Q15617994))
action union
action filter_type
action find
entity Q1615216
relation P27
type Q15617994
action filter_type
action find
entity Q987684
relation P27
type Q15617994
action filter_type
action find
entity Q3749574
relation P27
type Q15617994
['Q1615216', 'P27', {'concept': 'Q15617994'}] ['Q987684', 'P27', {'concept': 'Q15617994'}] ['Q3749574', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { ?l rdf:type ontology:Q15617994 . resource:Q1615216 property:P27 ?l } UNION { resource:Q987684 property:P27 ?l . ?l rdf:type ontology:Q15617994 } }
Gianfranco Cinello Antonio Bacchetti Francesco Arnaldi
action union
action filter_type
action find
entity Gianfranco Cinello
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Antonio Bacchetti
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Francesco Arnaldi
relation country of citizenship
type designation for an administrative territorial entity
['Gianfranco Cinello', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Antonio Bacchetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Francesco Arnaldi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Gianfranco_Cinello property:country_of_citizenship ?l } UNION { resource:Antonio_Bacchetti property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q38 Q38 Q38
SYSTEM
Italy
Q38 Q38 Q38
(Q1615216,P27,c(Q15617994)) (Q987684,P27,c(Q15617994)) (Q3749574,P27,c(Q15617994))
action union
action filter_type
action find
entity Q1615216
relation P27
type Q15617994
action filter_type
action find
entity Q987684
relation P27
type Q15617994
action filter_type
action find
entity Q3749574
relation P27
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] are Gianfranco Cinello, Antonio Bacchetti and Francesco Arnaldi an inhabitant of
['Q1615216', 'P27', {'concept': 'Q15617994'}] ['Q987684', 'P27', {'concept': 'Q15617994'}] ['Q3749574', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { ?l rdf:type ontology:Q15617994 . resource:Q1615216 property:P27 ?l } UNION { resource:Q987684 property:P27 ?l . ?l rdf:type ontology:Q15617994 } }
Italy Italy Italy
Italy, Italy and Italy are Gianfranco Cinello, Antonio Bacchetti and Francesco Arnaldi an inhabitant of
Italy Italy Italy
action union
action filter_type
action find
entity Gianfranco Cinello
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Antonio Bacchetti
relation country of citizenship
type designation for an administrative territorial entity
action filter_type
action find
entity Francesco Arnaldi
relation country of citizenship
type designation for an administrative territorial entity
['Gianfranco Cinello', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Antonio Bacchetti', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Francesco Arnaldi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Gianfranco_Cinello property:country_of_citizenship ?l } UNION { resource:Antonio_Bacchetti property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q53246
P190
Q13539802
USER
Which place with town privileges is sister town of Codroipo ?
(Q53246,P190,c(Q13539802))
action filter_type
action find
entity Q53246
relation P190
type Q13539802
['Q53246', 'P190', {'concept': 'Q13539802'}]
SELECT DISTINCT ?u WHERE { resource:Q53246 property:P190 ?u . ?u rdf:type ontology:Q13539802 }
Codroipo
action filter_type
action find
entity Codroipo
relation sister city
type place with town rights and privileges
['Codroipo', 'sister city', {'concept': 'place with town rights and privileges'}]
SELECT DISTINCT ?u WHERE { resource:Codroipo property:sister_city ?u . ?u rdf:type ontology:place_with_town_rights_and_privileges }
[]
place with town rights and privileges
Q95129
SYSTEM
Braine-le-Comte
Q95129
(Q53246,P190,c(Q13539802))
action filter_type
action find
entity Q53246
relation P190
type Q13539802
[ANSWER] is sister town of Codroipo
['Q53246', 'P190', {'concept': 'Q13539802'}]
SELECT DISTINCT ?u WHERE { resource:Q53246 property:P190 ?u . ?u rdf:type ontology:Q13539802 }
Braine-le-Comte
Braine-le-Comte is sister town of Codroipo
Braine-le-Comte
action filter_type
action find
entity Codroipo
relation sister city
type place with town rights and privileges
['Codroipo', 'sister city', {'concept': 'place with town rights and privileges'}]
SELECT DISTINCT ?u WHERE { resource:Codroipo property:sister_city ?u . ?u rdf:type ontology:place_with_town_rights_and_privileges }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q53246
P138
Q643589
USER
Which department has Codroipo as its namesake ?
(c(Q643589),P138,Q53246)
action filter_type
action find_reverse
entity Q53246
relation P138
type Q643589
[{'concept': 'Q643589'}, 'P138', 'Q53246']
SELECT DISTINCT ?x WHERE { ?x property:P138 resource:Q53246 . ?x rdf:type ontology:Q643589 }
Codroipo
action filter_type
action find_reverse
entity Codroipo
relation named after
type department
[{'concept': 'department'}, 'named after', 'Codroipo']
SELECT DISTINCT ?x WHERE { ?x property:named_after resource:Codroipo . ?x rdf:type ontology:department }
[]
department
Q3368209
SYSTEM
Passariano
Q3368209
(c(Q643589),P138,Q53246)
action filter_type
action find_reverse
entity Q53246
relation P138
type Q643589
[ANSWER] has Codroipo as its namesake
[{'concept': 'Q643589'}, 'P138', 'Q53246']
SELECT DISTINCT ?x WHERE { ?x property:P138 resource:Q53246 . ?x rdf:type ontology:Q643589 }
Passariano
Passariano has Codroipo as its namesake
Passariano
action filter_type
action find_reverse
entity Codroipo
relation named after
type department
[{'concept': 'department'}, 'named after', 'Codroipo']
SELECT DISTINCT ?x WHERE { ?x property:named_after resource:Codroipo . ?x rdf:type ontology:department }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16581890 Q1615216
P19
Q15617994
USER
Which administrative territories were Gianfranco Cinello or Nen Sothearath born at ?
OR((Q1615216,P19,c(Q15617994)), (Q16581890,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1615216
relation P19
action find
entity Q16581890
relation P19
type Q15617994
{'OR': [['Q1615216', 'P19', {'concept': 'Q15617994'}], ['Q16581890', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { ?m property:P19 ?f . VALUES ( ?m ) { ( resource:Q1615216 ) ( resource:Q16581890 ) } } . ?f rdf:type ontology:Q15617994 }
Nen Sothearath Gianfranco Cinello
action filter_type
action union
action find
entity Gianfranco Cinello
relation place of birth
action find
entity Nen Sothearath
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Gianfranco Cinello', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Nen Sothearath', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?m property:place_of_birth ?f . VALUES ( ?m ) { ( resource:Gianfranco_Cinello ) ( resource:Nen_Sothearath ) } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q53258 Q424
SYSTEM
Fagagna, Cambodia
Q53258 Q424
OR((Q1615216,P19,c(Q15617994)), (Q16581890,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1615216
relation P19
action find
entity Q16581890
relation P19
type Q15617994
Gianfranco Cinello or Nen Sothearath were born in [ANSWERS]
{'OR': [['Q1615216', 'P19', {'concept': 'Q15617994'}], ['Q16581890', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { ?m property:P19 ?f . VALUES ( ?m ) { ( resource:Q1615216 ) ( resource:Q16581890 ) } } . ?f rdf:type ontology:Q15617994 }
Fagagna Cambodia
Gianfranco Cinello or Nen Sothearath were born in Fagagna and Cambodia
Fagagna Cambodia
action filter_type
action union
action find
entity Gianfranco Cinello
relation place of birth
action find
entity Nen Sothearath
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Gianfranco Cinello', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Nen Sothearath', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?m property:place_of_birth ?f . VALUES ( ?m ) { ( resource:Gianfranco_Cinello ) ( resource:Nen_Sothearath ) } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q201658 Q7725634
USER
Which administrative territories did exactly 8 film genres and literary works originate ?
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
value 8
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?w WHERE { { ?b property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q201658 } UNION { ?b property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q7725634 } } GROUP BY ?w } . FILTER ( ?q = 8 ) }
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
value 8
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?w WHERE { { ?b property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:film_genre } UNION { ?b property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:literary_work } } GROUP BY ?w } . FILTER ( ?q = 8 ) }
[]
designation for an administrative territorial entity film genre literary work
Q419 Q27
SYSTEM
Peru, Ireland
Q419 Q27
(c(Q201658)|c(Q7725634),P495,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
value 8
Exactly 8 film genres and literary works originated from [ANSWERS]
[[{'concept': 'Q201658'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?w WHERE { { ?b property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q201658 } UNION { ?b property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q7725634 } } GROUP BY ?w } . FILTER ( ?q = 8 ) }
Peru Ireland
Exactly 8 film genres and literary works originated from Peru and Ireland
Peru Ireland
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
value 8
[[{'concept': 'film genre'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) ?w WHERE { { ?b property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:film_genre } UNION { ?b property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:literary_work } } GROUP BY ?w } . FILTER ( ?q = 8 ) }
[]