Simple Question (Direct)
Simple Question
Q3705068
P495
Q15617994
USER
What is the country of origin of Delitto in Formula Uno ?
(Q3705068,P495,c(Q15617994))
action filter_type
action find
entity Q3705068
relation P495
type Q15617994
['Q3705068', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3705068 property:P495 ?g . ?g rdf:type ontology:Q15617994 }
Delitto in Formula Uno
action filter_type
action find
entity Delitto in Formula Uno
relation country of origin
type designation for an administrative territorial entity
['Delitto in Formula Uno', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Delitto_in_Formula_Uno property:country_of_origin ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3705068,P495,c(Q15617994))
action filter_type
action find
entity Q3705068
relation P495
type Q15617994
The country of origin of Delitto in Formula is in [ANSWER]
['Q3705068', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q3705068 property:P495 ?g . ?g rdf:type ontology:Q15617994 }
Italy
The country of origin of Delitto in Formula is in Italy
Italy
action filter_type
action find
entity Delitto in Formula Uno
relation country of origin
type designation for an administrative territorial entity
['Delitto in Formula Uno', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Delitto_in_Formula_Uno property:country_of_origin ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3705068
P136
Q1792379
USER
What can be considered as category for that work of art ?
(Q38,P136,c(Q1792379))
action filter_type
action find
entity Q3705068
relation P136
type Q1792379
['Q38', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { resource:Q3705068 property:P136 ?u . ?u rdf:type ontology:Q1792379 }
Delitto in Formula Uno
action filter_type
action find
entity Delitto in Formula Uno
relation genre
type art genre
['Italy', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { resource:Delitto_in_Formula_Uno property:genre ?u . ?u rdf:type ontology:art_genre }
[]
art genre
Q157443
SYSTEM
comedy film
Q157443
(Q38,P136,c(Q1792379))
action filter_type
action find
entity Q3705068
relation P136
type Q1792379
The [ANSWER] can be considered as category for that work of art
['Q38', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { resource:Q3705068 property:P136 ?u . ?u rdf:type ontology:Q1792379 }
comedy film
The comedy film can be considered as category for that work of art
comedy film
action filter_type
action find
entity Delitto in Formula Uno
relation genre
type art genre
['Italy', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { resource:Delitto_in_Formula_Uno property:genre ?u . ?u rdf:type ontology:art_genre }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P136
Q1792379 Q2088357 Q838948
USER
Which art genres are the genre of max number of musical ensembles or works of art ?
(c(Q2088357)|c(Q838948),P136,c(Q1792379))
action argmax
action union
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q2088357
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q838948
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?n ) { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?d ) WHERE { ?s rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } GROUP BY ?i } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?u ) WHERE { { ?x property:P136 ?w . ?x rdf:type ontology:Q2088357 . ?w rdf:type ontology:Q1792379 } UNION { ?x property:P136 ?w . ?w rdf:type ontology:Q1792379 . ?x rdf:type ontology:Q838948 } } GROUP BY ?w } }
action argmax
action union
action find_reverse_tuple_counts
relation genre
type art genre
type musical ensemble
action find_reverse_tuple_counts
relation genre
type art genre
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?n ) { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?d ) WHERE { ?s rdf:type ?b . VALUES ( ?b ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } GROUP BY ?i } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?u ) WHERE { { ?x property:genre ?w . ?x rdf:type ontology:musical_ensemble . ?w rdf:type ontology:art_genre } UNION { ?x property:genre ?w . ?w rdf:type ontology:art_genre . ?x rdf:type ontology:work_of_art } } GROUP BY ?w } }
[]
art genre musical ensemble work of art
Q130232
SYSTEM
drama film
Q130232
(c(Q2088357)|c(Q838948),P136,c(Q1792379))
action argmax
action union
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q2088357
action find_reverse_tuple_counts
relation P136
type Q1792379
type Q838948
[ANSWER] is the genre of max number of musical ensembles or works of art
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?n ) { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?d ) WHERE { ?s rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } GROUP BY ?i } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?u ) WHERE { { ?x property:P136 ?w . ?x rdf:type ontology:Q2088357 . ?w rdf:type ontology:Q1792379 } UNION { ?x property:P136 ?w . ?w rdf:type ontology:Q1792379 . ?x rdf:type ontology:Q838948 } } GROUP BY ?w } }
drama film
Drama film is the genre of max number of musical ensembles or works of art
drama film
action argmax
action union
action find_reverse_tuple_counts
relation genre
type art genre
type musical ensemble
action find_reverse_tuple_counts
relation genre
type art genre
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?n ) { SELECT DISTINCT ?i ( COUNT ( ?s ) AS ?d ) WHERE { ?s rdf:type ?b . VALUES ( ?b ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } GROUP BY ?i } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?u ) WHERE { { ?x property:genre ?w . ?x rdf:type ontology:musical_ensemble . ?w rdf:type ontology:art_genre } UNION { ?x property:genre ?w . ?w rdf:type ontology:art_genre . ?x rdf:type ontology:work_of_art } } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21780587 Q3705068
P161
Q502895
USER
Which people starred in Delitto in Formula Uno or Mirzya ?
OR((Q3705068,P161,c(Q502895)), (Q21780587,P161,c(Q502895)))
action filter_type
action union
action find
entity Q3705068
relation P161
action find
entity Q21780587
relation P161
type Q502895
{'OR': [['Q3705068', 'P161', {'concept': 'Q502895'}], ['Q21780587', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . { ?i property:P161 ?v . VALUES ( ?i ) { ( resource:Q21780587 ) ( resource:Q3705068 ) } } }
Mirzya Delitto in Formula Uno
action filter_type
action union
action find
entity Delitto in Formula Uno
relation cast member
action find
entity Mirzya
relation cast member
type common name
{'OR': [['Delitto in Formula Uno', 'cast member', {'concept': 'common name'}], ['Mirzya', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . { ?i property:cast_member ?v . VALUES ( ?i ) { ( resource:Mirzya ) ( resource:Delitto_in_Formula_Uno ) } } }
[]
common name
Q993165 Q3802235 Q293117 Q3888684 Q3881667 Q1450781 Q3956097 Q6323460 Q3830246 Q1541570
SYSTEM
Some of them are Bruno Corbucci, Isabel Russinova, Maria Grazia Buccella, Paco Fabrini, Olimpia Di Nardo, Massimo Vanni, Sergio Di Pinto, K. K. Raina, Leo Gavero, Pino Colizzi
Q3881667 Q3802235 Q3956097 Q3876322 Q993165 Q1450781 Q77456 Q6323460 Q3888684 Q3830246 Q1541570 Q80309 Q3641985 Q3609301 Q432638 Q3852589 Q3726538 Q3845626 Q3802208 Q3848537 Q23007906 Q3831999 Q1343356 Q705644 Q3808446 Q293117 Q16745369
OR((Q3705068,P161,c(Q502895)), (Q21780587,P161,c(Q502895)))
action filter_type
action union
action find
entity Q3705068
relation P161
action find
entity Q21780587
relation P161
type Q502895
[ANSWERS]
{'OR': [['Q3705068', 'P161', {'concept': 'Q502895'}], ['Q21780587', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . { ?i property:P161 ?v . VALUES ( ?i ) { ( resource:Q21780587 ) ( resource:Q3705068 ) } } }
Olimpia Di Nardo Isabel Russinova Sergio Di Pinto Nicola Pistoia Bruno Corbucci Massimo Vanni Dagmar Lassander K. K. Raina Paco Fabrini Leo Gavero Pino Colizzi Om Puri Bombolo Aldo Ralli Tomás Milián Maurizio Fabbri Enzo Garinei Marcello Martana Isaac George Mario Donatone Harshvardhan Kapoor Licinia Lentini Ennio Antonelli Art Malik Jimmy il Fenomeno Maria Grazia Buccella Saiyami Kher
Bruno Corbucci, Isabel Russinova, Maria Grazia Buccella, Paco Fabrini, Olimpia Di Nardo, Massimo Vanni, Sergio Di Pinto, K. Raina, Leo Gavero and Pino Colizzi starred in Delitto in Formula Uno or Mirzya
Bruno Corbucci Isabel Russinova Maria Grazia Buccella Paco Fabrini Olimpia Di Nardo Massimo Vanni Sergio Di Pinto K. K. Raina Leo Gavero Pino Colizzi
action filter_type
action union
action find
entity Delitto in Formula Uno
relation cast member
action find
entity Mirzya
relation cast member
type common name
{'OR': [['Delitto in Formula Uno', 'cast member', {'concept': 'common name'}], ['Mirzya', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . { ?i property:cast_member ?v . VALUES ( ?i ) { ( resource:Mirzya ) ( resource:Delitto_in_Formula_Uno ) } } }
[]