Simple Question (Direct)
Simple Question
Q5418885
P641
Q349
USER
What did Ewald Ullmann participate in ?
(Q5418885,P641,c(Q349))
action filter_type
action find
entity Q5418885
relation P641
type Q349
['Q5418885', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q5418885 property:P641 ?f . ?f rdf:type ontology:Q349 }
Ewald Ullmann
action filter_type
action find
entity Ewald Ullmann
relation sport
type sport
['Ewald Ullmann', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Ewald_Ullmann property:sport ?f . ?f rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5418885,P641,c(Q349))
action filter_type
action find
entity Q5418885
relation P641
type Q349
Ewald Ullmann participated in [ANSWER]
['Q5418885', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?f WHERE { resource:Q5418885 property:P641 ?f . ?f rdf:type ontology:Q349 }
association football
Ewald Ullmann participated in association football
association football
action filter_type
action find
entity Ewald Ullmann
relation sport
type sport
['Ewald Ullmann', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?f WHERE { resource:Ewald_Ullmann property:sport ?f . ?f rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5418885
P106
Q12737077
USER
What does that person do for a living ?
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q5418885
relation P106
type Q12737077
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q5418885 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Ewald Ullmann
action filter_type
action find
entity Ewald Ullmann
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Ewald_Ullmann property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2736,P106,c(Q12737077))
action filter_type
action find
entity Q5418885
relation P106
type Q12737077
Player [ANSWER] that person does for a living
['Q2736', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q5418885 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
association football player
Player association football player that person does for a living
association football player
action filter_type
action find
entity Ewald Ullmann
relation occupation
type occupation
['association football', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Ewald_Ullmann property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q502895 Q12737077 Q12737077
USER
Which occupations did max number of people or occupations appoint ?
(c(Q12737077),P748,c(Q502895)|c(Q12737077))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?v WHERE { ?p rdf:type ?c . VALUES ( ?c ) { ( ontology:Q502895 ) ( ontology:Q12737077 ) } } GROUP BY ?v } } . FILTER ( ?h = ?s ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?a WHERE { { ?a property:P748 ?b . ?a rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q502895 } UNION { ?a property:P748 ?b . ?a rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?a } }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type common name
action find_tuple_counts
relation appointed by
type occupation
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?v WHERE { ?p rdf:type ?c . VALUES ( ?c ) { ( ontology:common_name ) ( ontology:occupation ) } } GROUP BY ?v } } . FILTER ( ?h = ?s ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?a WHERE { { ?a property:appointed_by ?b . ?a rdf:type ontology:occupation . ?b rdf:type ontology:common_name } UNION { ?a property:appointed_by ?b . ?a rdf:type ontology:occupation . ?b rdf:type ontology:occupation } } GROUP BY ?a } }
[]
common name occupation occupation
Q4970706
SYSTEM
Federal Chancellor of Germany
Q4970706
(c(Q12737077),P748,c(Q502895)|c(Q12737077))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
Max number of people or occupations appointed by [ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q12737077'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?v WHERE { ?p rdf:type ?c . VALUES ( ?c ) { ( ontology:Q502895 ) ( ontology:Q12737077 ) } } GROUP BY ?v } } . FILTER ( ?h = ?s ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?a WHERE { { ?a property:P748 ?b . ?a rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q502895 } UNION { ?a property:P748 ?b . ?a rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?a } }
Federal Chancellor of Germany
Max number of people or occupations appointed by Federal Chancellor of Germany
Federal Chancellor of Germany
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type common name
action find_tuple_counts
relation appointed by
type occupation
type occupation
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'occupation'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?s ) { SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) ?v WHERE { ?p rdf:type ?c . VALUES ( ?c ) { ( ontology:common_name ) ( ontology:occupation ) } } GROUP BY ?v } } . FILTER ( ?h = ?s ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) ?a WHERE { { ?a property:appointed_by ?b . ?a rdf:type ontology:occupation . ?b rdf:type ontology:common_name } UNION { ?a property:appointed_by ?b . ?a rdf:type ontology:occupation . ?b rdf:type ontology:occupation } } GROUP BY ?a } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4970706 Q3611397
P748
Q502895
USER
Is Alfredo Esposito responsible for appointment of that occupation ?
(Q4970706,P748,Q3611397)
action is_in
entity Q3611397
action find
entity Q4970706
relation P748
['Q4970706', 'P748', 'Q3611397']
ASK WHERE { resource:Q4970706 property:P748 resource:Q3611397 }
Federal Chancellor of Germany Alfredo Esposito
action is_in
entity Alfredo Esposito
action find
entity Federal Chancellor of Germany
relation appointed by
['Federal Chancellor of Germany', 'appointed by', 'Alfredo Esposito']
ASK WHERE { resource:Federal_Chancellor_of_Germany property:appointed_by resource:Alfredo_Esposito }
[]
common name
SYSTEM
NO
(Q4970706,P748,Q3611397)
action is_in
entity Q3611397
action find
entity Q4970706
relation P748
[ANSWER]
['Q4970706', 'P748', 'Q3611397']
ASK WHERE { resource:Q4970706 property:P748 resource:Q3611397 }
No
action is_in
entity Alfredo Esposito
action find
entity Federal Chancellor of Germany
relation appointed by
['Federal Chancellor of Germany', 'appointed by', 'Alfredo Esposito']
ASK WHERE { resource:Federal_Chancellor_of_Germany property:appointed_by resource:Alfredo_Esposito }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5418885
P54
Q1194951
USER
Which national sports team is Ewald Ullmann a member of ?
(Q5418885,P54,c(Q1194951))
action filter_type
action find
entity Q5418885
relation P54
type Q1194951
['Q5418885', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1194951 . resource:Q5418885 property:P54 ?v }
Ewald Ullmann
action filter_type
action find
entity Ewald Ullmann
relation member of sports team
type national sports team
['Ewald Ullmann', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:national_sports_team . resource:Ewald_Ullmann property:member_of_sports_team ?v }
[]
national sports team
Q163534
SYSTEM
Austria national football team
Q163534
(Q5418885,P54,c(Q1194951))
action filter_type
action find
entity Q5418885
relation P54
type Q1194951
The [ANSWER] is Ewald Ullmann a member of
['Q5418885', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1194951 . resource:Q5418885 property:P54 ?v }
Austria national football team
The Austria national football team is Ewald Ullmann a member of
Austria national football team
action filter_type
action find
entity Ewald Ullmann
relation member of sports team
type national sports team
['Ewald Ullmann', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:national_sports_team . resource:Ewald_Ullmann property:member_of_sports_team ?v }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q163534 Q131075 Q1477177
P1344
Q15275719
USER
Did that national sports team took part in 1954 FIFA World Cup and 1934 FIFA World Cup ?
(Q163534,P1344,Q131075) (Q163534,P1344,Q1477177)
action is_in
entity Q163534
action intersection
action find_reverse
entity Q131075
relation P1344
action find_reverse
entity Q1477177
relation P1344
['Q163534', 'P1344', 'Q131075'] ['Q163534', 'P1344', 'Q1477177']
ASK WHERE { resource:Q163534 property:P1344 resource:Q131075 . resource:Q163534 property:P1344 resource:Q1477177 }
Austria national football team 1954 FIFA World Cup 1934 FIFA World Cup
action is_in
entity Austria national football team
action intersection
action find_reverse
entity 1954 FIFA World Cup
relation participant of
action find_reverse
entity 1934 FIFA World Cup
relation participant of
['Austria national football team', 'participant of', '1954 FIFA World Cup'] ['Austria national football team', 'participant of', '1934 FIFA World Cup']
ASK WHERE { resource:Austria_national_football_team property:participant_of resource:1954_FIFA_World_Cup . resource:Austria_national_football_team property:participant_of resource:1934_FIFA_World_Cup }
[]
recurring event
SYSTEM
YES
(Q163534,P1344,Q131075) (Q163534,P1344,Q1477177)
action is_in
entity Q163534
action intersection
action find_reverse
entity Q131075
relation P1344
action find_reverse
entity Q1477177
relation P1344
[ANSWER]
['Q163534', 'P1344', 'Q131075'] ['Q163534', 'P1344', 'Q1477177']
ASK WHERE { resource:Q163534 property:P1344 resource:Q131075 . resource:Q163534 property:P1344 resource:Q1477177 }
Yes
action is_in
entity Austria national football team
action intersection
action find_reverse
entity 1954 FIFA World Cup
relation participant of
action find_reverse
entity 1934 FIFA World Cup
relation participant of
['Austria national football team', 'participant of', '1954 FIFA World Cup'] ['Austria national football team', 'participant of', '1934 FIFA World Cup']
ASK WHERE { resource:Austria_national_football_team property:participant_of resource:1954_FIFA_World_Cup . resource:Austria_national_football_team property:participant_of resource:1934_FIFA_World_Cup }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q3305213 Q838948
USER
Which occupations are demonstrated in around 8 paintings or works of art ?
(c(Q3305213)|c(Q838948),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
value 8
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?x = 8 ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?x ) WHERE { { ?n property:P180 ?g . ?n rdf:type ontology:Q3305213 . ?g rdf:type ontology:Q12737077 } UNION { ?n property:P180 ?g . ?g rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q838948 } } GROUP BY ?g } }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
value 8
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?x = 8 ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?x ) WHERE { { ?n property:depicts ?g . ?n rdf:type ontology:painting . ?g rdf:type ontology:occupation } UNION { ?n property:depicts ?g . ?g rdf:type ontology:occupation . ?n rdf:type ontology:work_of_art } } GROUP BY ?g } }
[]
occupation painting work of art
Q1250916 Q4991371
SYSTEM
warrior, soldier
Q1250916 Q4991371
(c(Q3305213)|c(Q838948),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
value 8
The [ANSWERS] are demonstrated in around 8 paintings or works of art
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?x = 8 ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?x ) WHERE { { ?n property:P180 ?g . ?n rdf:type ontology:Q3305213 . ?g rdf:type ontology:Q12737077 } UNION { ?n property:P180 ?g . ?g rdf:type ontology:Q12737077 . ?n rdf:type ontology:Q838948 } } GROUP BY ?g } }
warrior soldier
The warrior and soldier are demonstrated in around 8 paintings or works of art
warrior soldier
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
value 8
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?x = 8 ) . { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?x ) WHERE { { ?n property:depicts ?g . ?n rdf:type ontology:painting . ?g rdf:type ontology:occupation } UNION { ?n property:depicts ?g . ?g rdf:type ontology:occupation . ?n rdf:type ontology:work_of_art } } GROUP BY ?g } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q17309101
P106
Q502895
USER
Do Mungo Haldane have the profession as those occupations ?
(Q17309101,P106,Q1250916) (Q17309101,P106,Q4991371)
action is_in
entity prev_answer
action find
entity Q17309101
relation P106
['Q17309101', 'P106', 'Q1250916'] ['Q17309101', 'P106', 'Q4991371']
ASK WHERE { resource:Q17309101 property:P106 ?k . VALUES ( ?k ) { ( resource:Q1250916 ) ( resource:Q4991371 ) } }
Mungo Haldane
action is_in
entity prev_answer
action find
entity Mungo Haldane
relation occupation
['Mungo Haldane', 'occupation', 'warrior'] ['Mungo Haldane', 'occupation', 'soldier']
ASK WHERE { resource:Mungo_Haldane property:occupation ?k . VALUES ( ?k ) { ( resource:warrior ) ( resource:soldier ) } }
[]
common name
SYSTEM
NO
(Q17309101,P106,Q1250916) (Q17309101,P106,Q4991371)
action is_in
entity prev_answer
action find
entity Q17309101
relation P106
[ANSWER]
['Q17309101', 'P106', 'Q1250916'] ['Q17309101', 'P106', 'Q4991371']
ASK WHERE { resource:Q17309101 property:P106 ?k . VALUES ( ?k ) { ( resource:Q1250916 ) ( resource:Q4991371 ) } }
No
action is_in
entity prev_answer
action find
entity Mungo Haldane
relation occupation
['Mungo Haldane', 'occupation', 'warrior'] ['Mungo Haldane', 'occupation', 'soldier']
ASK WHERE { resource:Mungo_Haldane property:occupation ?k . VALUES ( ?k ) { ( resource:warrior ) ( resource:soldier ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2573044 Q3611397
P27 P495
Q15617994
USER
Which administrative territories do Alfredo Esposito belong to and did Kedma originate ?
AND((Q3611397,P27,c(Q15617994)), (Q2573044,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3611397
relation P27
action find
entity Q2573044
relation P495
type Q15617994
{'AND': [['Q3611397', 'P27', {'concept': 'Q15617994'}], ['Q2573044', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q3611397 property:P27 ?q . resource:Q2573044 property:P495 ?q . ?q rdf:type ontology:Q15617994 }
Kedma Alfredo Esposito
action filter_type
action intersection
action find
entity Alfredo Esposito
relation country of citizenship
action find
entity Kedma
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Alfredo Esposito', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kedma', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Alfredo_Esposito property:country_of_citizenship ?q . resource:Kedma property:country_of_origin ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q3611397,P27,c(Q15617994)), (Q2573044,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3611397
relation P27
action find
entity Q2573044
relation P495
type Q15617994
Alfredo Esposito belong to [ANSWER]
{'AND': [['Q3611397', 'P27', {'concept': 'Q15617994'}], ['Q2573044', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q3611397 property:P27 ?q . resource:Q2573044 property:P495 ?q . ?q rdf:type ontology:Q15617994 }
Italy
Alfredo Esposito belong to Italy
Italy
action filter_type
action intersection
action find
entity Alfredo Esposito
relation country of citizenship
action find
entity Kedma
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Alfredo Esposito', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kedma', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Alfredo_Esposito property:country_of_citizenship ?q . resource:Kedma property:country_of_origin ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q44539 Q15617994
USER
Which administrative territories are exactly 7 temples and administrative territories located in ?
(c(Q44539)|c(Q15617994),P17,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q44539
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15617994
value 7
[[{'concept': 'Q44539'}, {'concept': 'Q15617994'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?d WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:Q44539 ) ( ontology:Q15617994 ) } } GROUP BY ?d } . FILTER ( ?s = 7 ) }
action equal
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type temple
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 7
[[{'concept': 'temple'}, {'concept': 'designation for an administrative territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?d WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:temple ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?d } . FILTER ( ?s = 7 ) }
[]
designation for an administrative territorial entity temple designation for an administrative territorial entity
Q414 Q1009 Q1029
SYSTEM
Argentina, Cameroon, Mozambique
Q414 Q811 Q1029 Q836 Q223 Q1032 Q1009
(c(Q44539)|c(Q15617994),P17,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q44539
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15617994
value 7
[ANSWERS]
[[{'concept': 'Q44539'}, {'concept': 'Q15617994'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?d WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:Q44539 ) ( ontology:Q15617994 ) } } GROUP BY ?d } . FILTER ( ?s = 7 ) }
Argentina Nicaragua Mozambique Myanmar Greenland Niger Cameroon
Which administrative territories are exactly 7 temples and administrative territories located in
Argentina Cameroon Mozambique
action equal
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type temple
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 7
[[{'concept': 'temple'}, {'concept': 'designation for an administrative territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?d WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:temple ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?d } . FILTER ( ?s = 7 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1638432 Q2573044
P161
Q502895
USER
Which people were casted in Kedma or Alien Trespass ?
OR((Q2573044,P161,c(Q502895)), (Q1638432,P161,c(Q502895)))
action filter_type
action union
action find
entity Q2573044
relation P161
action find
entity Q1638432
relation P161
type Q502895
{'OR': [['Q2573044', 'P161', {'concept': 'Q502895'}], ['Q1638432', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( resource:Q2573044 ) ( resource:Q1638432 ) } . ?k property:P161 ?z } . ?z rdf:type ontology:Q502895 }
Alien Trespass Kedma
action filter_type
action union
action find
entity Kedma
relation cast member
action find
entity Alien Trespass
relation cast member
type common name
{'OR': [['Kedma', 'cast member', {'concept': 'common name'}], ['Alien Trespass', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( resource:Kedma ) ( resource:Alien_Trespass ) } . ?k property:cast_member ?z } . ?z rdf:type ontology:common_name }
[]
common name
Q455584 Q1159104 Q1431084 Q272977 Q12406670 Q1322337 Q2908394 Q460358 Q6561099 Q6984265
SYSTEM
Some of them are Juliano Mer-Khamis, Dan Lauria, Tom Braidwood, Robert Patrick, Helena Yaralova, Tom McBeath, Moni Moshonov, Yaël Abecassis, Veronica Nicole, Liron Levo
Q455584 Q1431084 Q2920253 Q460358 Q2903598 Q529454 Q2908394 Q286971 Q12406670 Q436686 Q3177010 Q1159104 Q6561099 Q6995835 Q1322337 Q6984265 Q272977 Q514696
OR((Q2573044,P161,c(Q502895)), (Q1638432,P161,c(Q502895)))
action filter_type
action union
action find
entity Q2573044
relation P161
action find
entity Q1638432
relation P161
type Q502895
[ANSWERS] were casted in Kedma or Alien Trespass
{'OR': [['Q2573044', 'P161', {'concept': 'Q502895'}], ['Q1638432', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( resource:Q2573044 ) ( resource:Q1638432 ) } . ?k property:P161 ?z } . ?z rdf:type ontology:Q502895 }
Juliano Mer-Khamis Tom Braidwood Sandy Bar Yaël Abecassis Yussuf Abu-Warda Jody Thompson Moni Moshonov Jonathon Young Helena Yaralova Eric McCormack Jenni Baird Dan Lauria Veronica Nicole Ishai Golan Tom McBeath Liron Levo Robert Patrick Sage Brocklebank
Juliano Mer-Khamis, Dan Lauria, Tom Braidwood, Robert Patrick, Helena Yaralova, Tom McBeath, Moni Moshonov, Yaël Abecassis, Veronica Nicole and Liron Levo were casted in Kedma or Alien Trespass
Juliano Mer-Khamis Dan Lauria Tom Braidwood Robert Patrick Helena Yaralova Tom McBeath Moni Moshonov Yaël Abecassis Veronica Nicole Liron Levo
action filter_type
action union
action find
entity Kedma
relation cast member
action find
entity Alien Trespass
relation cast member
type common name
{'OR': [['Kedma', 'cast member', {'concept': 'common name'}], ['Alien Trespass', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?k ) { ( resource:Kedma ) ( resource:Alien_Trespass ) } . ?k property:cast_member ?z } . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q15617994 Q515 Q56061
USER
Which administrative territories have min number of cities and administrative territories as their capital ?
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?n ) { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { { ?d property:P1376 ?a . ?a rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q56061 } UNION { ?d rdf:type ontology:Q515 . ?a rdf:type ontology:Q15617994 . ?d property:P1376 ?a } } GROUP BY ?a } } . FILTER ( ?v = ?n ) . { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?v ) WHERE { ?i rdf:type ?w . VALUES ( ?w ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } GROUP BY ?r } }
action argmin
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?n ) { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { { ?d property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d rdf:type ontology:city . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:capital_of ?a } } GROUP BY ?a } } . FILTER ( ?v = ?n ) . { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?v ) WHERE { ?i rdf:type ?w . VALUES ( ?w ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?r } }
[]
designation for an administrative territorial entity city administrative territorial entity
Q224 Q739 Q965
SYSTEM
Croatia, Colombia, Burkina Faso
Q12631 Q3368 Q1111401 Q3044731 Q12689 Q2527360 Q699731 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q739 Q733 Q12574 Q12798 Q12792 Q1284 Q541811 Q1458 Q12700 Q12703 Q12709 Q12569 Q12642 Q3216 Q3194 Q541589 Q12804 Q12808 Q3326 Q3286 Q3266 Q3105 Q731547 Q33788 Q709 Q12740 Q12745 Q12779 Q12607 Q290739 Q12789 Q1452646 Q2281221 Q1508919 Q12694 Q12515 Q12517 Q3364 Q3148 Q280312 Q492437 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q686312 Q697 Q12730 Q12736 Q1270568 Q12657 Q12652 Q12556 Q694594 Q874 Q176 Q12816 Q3353 Q3357 Q389004 Q492430 Q3278 Q3184 Q239502 Q2900529 Q12772 Q1090678 Q1999970 Q155019 Q107426 Q511365 Q598193 Q1270623 Q10957559 Q965 Q962 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q474421 Q3349 Q3083 Q3249 Q34762 Q12761 Q12765 Q1443 Q224 Q691265 Q313175 Q3334 Q12572 Q12576 Q12578 Q12679 Q3514973 Q3113 Q1234961 Q1222 Q672 Q12758 Q12753 Q12751 Q12564
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
[ANSWERS] have min number of cities and administrative territories as their capital
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?n ) { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { { ?d property:P1376 ?a . ?a rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q56061 } UNION { ?d rdf:type ontology:Q515 . ?a rdf:type ontology:Q15617994 . ?d property:P1376 ?a } } GROUP BY ?a } } . FILTER ( ?v = ?n ) . { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?v ) WHERE { ?i rdf:type ?w . VALUES ( ?w ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } GROUP BY ?r } }
Meuse Essonne Kispest District Guyane Pas-de-Calais Stura Wied Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Colombia Paraguay Loiret Vendée Vaucluse Abruzzo Ems-Oriental Calabria Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Morbihan Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Corrèze Cher Charente Vosges Lippe New Caledonia Marshall Islands Sarthe Savoie Tarn-et-Garonne Haute-Marne Sesia Var Montenotte Principality of Orange Marengo Puy-de-Dôme Gard Gers Drôme Ardèche Principality of Lüneburg Bouches-du-Weser Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Duchy of Amalfi Nauru Haute-Saône Saône-et-Loire Ems Nièvre Moselle Indre-et-Loire Bremen-Verden Turkmenistan Quebec Yonne Creuse Dordogne Wallachia Bouches-de-l'Elbe Charente-Maritime Ariège Kingdom of Galicia–Volhynia Bezirk Lothringen Tarn Sègre Upper Alsace Duchy of Lorraine Anjou Arvika Municipality Apennins Meurthe Moldavia Burkina Faso Benin Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Principality of Fürstenberg Côtes-d'Armor Ain Calvados Principality of Bayreuth Seine-Saint-Denis Deux-Sèvres Molise Croatia Mont-Terrible Saxe-Lauenburg Haute-Corse Haute-Loire Lot Lot-et-Garonne Orne Tanaro Allier Doire Aosta Valley Tuvalu Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Croatia, Colombia and Burkina Faso have min number of cities and administrative territories as their capital
Croatia Colombia Burkina Faso
action argmin
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?n ) { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { { ?d property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:administrative_territorial_entity } UNION { ?d rdf:type ontology:city . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d property:capital_of ?a } } GROUP BY ?a } } . FILTER ( ?v = ?n ) . { SELECT DISTINCT ?r ( COUNT ( ?i ) AS ?v ) WHERE { ?i rdf:type ?w . VALUES ( ?w ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?r } }
[]