Simple Question (Direct)
Simple Question
Q27751
P750
Q375336
USER
Who distributes Gangster Squad ?
(Q27751,P750,c(Q375336))
action filter_type
action find
entity Q27751
relation P750
type Q375336
['Q27751', 'P750', {'concept': 'Q375336'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q375336 . resource:Q27751 property:P750 ?e }
Gangster Squad
action filter_type
action find
entity Gangster Squad
relation distributor
type film studio
['Gangster Squad', 'distributor', {'concept': 'film studio'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:film_studio . resource:Gangster_Squad property:distributor ?e }
[]
film studio
Q126399
SYSTEM
Warner Bros.
Q126399
(Q27751,P750,c(Q375336))
action filter_type
action find
entity Q27751
relation P750
type Q375336
[ANSWER] distributes Gangster Squad
['Q27751', 'P750', {'concept': 'Q375336'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q375336 . resource:Q27751 property:P750 ?e }
Warner Bros.
Warner Bros. distributes Gangster Squad
Warner Bros.
action filter_type
action find
entity Gangster Squad
relation distributor
type film studio
['Gangster Squad', 'distributor', {'concept': 'film studio'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:film_studio . resource:Gangster_Squad property:distributor ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q27751
P921
Q43229
USER
What was the main subject of Gangster Squad 's work ?
(Q27751,P921,c(Q43229))
action filter_type
action find
entity Q27751
relation P921
type Q43229
['Q27751', 'P921', {'concept': 'Q43229'}]
SELECT DISTINCT ?i WHERE { resource:Q27751 property:P921 ?i . ?i rdf:type ontology:Q43229 }
Gangster Squad
action filter_type
action find
entity Gangster Squad
relation main subject
type organization
['Gangster Squad', 'main subject', {'concept': 'organization'}]
SELECT DISTINCT ?i WHERE { resource:Gangster_Squad property:main_subject ?i . ?i rdf:type ontology:organization }
[]
organization
Q46952
SYSTEM
organized crime
Q46952
(Q27751,P921,c(Q43229))
action filter_type
action find
entity Q27751
relation P921
type Q43229
The main subject of Gangster Squad's work was [ANSWER]
['Q27751', 'P921', {'concept': 'Q43229'}]
SELECT DISTINCT ?i WHERE { resource:Q27751 property:P921 ?i . ?i rdf:type ontology:Q43229 }
organized crime
The main subject of Gangster Squad's work was organized crime
organized crime
action filter_type
action find
entity Gangster Squad
relation main subject
type organization
['Gangster Squad', 'main subject', {'concept': 'organization'}]
SELECT DISTINCT ?i WHERE { resource:Gangster_Squad property:main_subject ?i . ?i rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q43229 Q151885 Q12973014
USER
How many organizations are more number of concepts or sports teams a part of than that organization ?
(c(Q151885)|c(Q12973014),P361,c(Q43229))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q43229
type Q151885
action find_reverse_tuple_counts
relation P361
type Q43229
type Q12973014
action count
action filter_multi_types
action find_reverse
entity Q46952
relation P361
type Q151885
type Q12973014
[[{'concept': 'Q151885'}, {'concept': 'Q12973014'}], 'P361', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { FILTER ( ?w > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { VALUES ( ?p ) { ( ontology:Q151885 ) ( ontology:Q12973014 ) } . ?c rdf:type ?p } . ?c property:P361 resource:Q46952 } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?o WHERE { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:Q12973014 ) ( ontology:Q151885 ) } } GROUP BY ?o } }
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type organization
type concept
action find_reverse_tuple_counts
relation part of
type organization
type sports team
action count
action filter_multi_types
action find_reverse
entity organized crime
relation part of
type concept
type sports team
[[{'concept': 'concept'}, {'concept': 'sports team'}], 'part of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { FILTER ( ?w > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { VALUES ( ?p ) { ( ontology:concept ) ( ontology:sports_team ) } . ?c rdf:type ?p } . ?c property:part_of resource:organized_crime } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?o WHERE { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:sports_team ) ( ontology:concept ) } } GROUP BY ?o } }
[]
organization concept sports team
SYSTEM
1
Q750200
(c(Q151885)|c(Q12973014),P361,c(Q43229))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q43229
type Q151885
action find_reverse_tuple_counts
relation P361
type Q43229
type Q12973014
action count
action filter_multi_types
action find_reverse
entity Q46952
relation P361
type Q151885
type Q12973014
[ANSWER]
[[{'concept': 'Q151885'}, {'concept': 'Q12973014'}], 'P361', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { FILTER ( ?w > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { VALUES ( ?p ) { ( ontology:Q151885 ) ( ontology:Q12973014 ) } . ?c rdf:type ?p } . ?c property:P361 resource:Q46952 } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?o WHERE { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:Q12973014 ) ( ontology:Q151885 ) } } GROUP BY ?o } }
SønderjyskE
1
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type organization
type concept
action find_reverse_tuple_counts
relation part of
type organization
type sports team
action count
action filter_multi_types
action find_reverse
entity organized crime
relation part of
type concept
type sports team
[[{'concept': 'concept'}, {'concept': 'sports team'}], 'part of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { FILTER ( ?w > ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { VALUES ( ?p ) { ( ontology:concept ) ( ontology:sports_team ) } . ?c rdf:type ?p } . ?c property:part_of resource:organized_crime } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) ?o WHERE { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:sports_team ) ( ontology:concept ) } } GROUP BY ?o } }
[]