Simple Question (Direct)
Simple Question
Q2572070
P19
Q56061
USER
Which administrative territory is the place of birth of Dragoje Leković ?
(Q2572070,P19,c(Q56061))
action filter_type
action find
entity Q2572070
relation P19
type Q56061
['Q2572070', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q2572070 property:P19 ?m }
Dragoje Leković
action filter_type
action find
entity Dragoje Leković
relation place of birth
type administrative territorial entity
['Dragoje Leković', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Dragoje_Leković property:place_of_birth ?m }
[]
administrative territorial entity
Q550435
SYSTEM
Sivac
Q550435
(Q2572070,P19,c(Q56061))
action filter_type
action find
entity Q2572070
relation P19
type Q56061
[ANSWER] is the place of birth of Dragoje Leković
['Q2572070', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q2572070 property:P19 ?m }
Sivac
Sivac is the place of birth of Dragoje Leković
Sivac
action filter_type
action find
entity Dragoje Leković
relation place of birth
type administrative territorial entity
['Dragoje Leković', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Dragoje_Leković property:place_of_birth ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q550435
P17
Q15617994
USER
Which administrative territory does that administrative territory belong to ?
(Q550435,P17,c(Q15617994))
action filter_type
action find
entity Q550435
relation P17
type Q15617994
['Q550435', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q550435 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Sivac
action filter_type
action find
entity Sivac
relation country
type designation for an administrative territorial entity
['Sivac', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Sivac property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403
SYSTEM
Serbia
Q403
(Q550435,P17,c(Q15617994))
action filter_type
action find
entity Q550435
relation P17
type Q15617994
That administrative territory belongs to [ANSWER]
['Q550435', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q550435 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Serbia
That administrative territory belongs to Serbia
Serbia
action filter_type
action find
entity Sivac
relation country
type designation for an administrative territorial entity
['Sivac', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Sivac property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q5589178
USER
How many administrative territories or regimes share border with that administrative territory ?
(Q403,P47,c(Q15617994)) (Q403,P47,c(Q5589178)) (Q403,P47,c(Q15617994)) (Q403,P47,c(Q5589178))
action count
action union
action filter_type
action find
entity Q403
relation P47
type Q15617994
action filter_type
action find
entity Q403
relation P47
type Q5589178
['Q403', 'P47', {'concept': 'Q15617994'}] ['Q403', 'P47', {'concept': 'Q5589178'}] ['Q403', 'P47', {'concept': 'Q15617994'}] ['Q403', 'P47', {'concept': 'Q5589178'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { resource:Q403 property:P47 ?a . ?a rdf:type ontology:Q15617994 } UNION { resource:Q403 property:P47 ?a . ?a rdf:type ontology:Q5589178 } }
action count
action union
action filter_type
action find
entity Serbia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Serbia
relation shares border with
type regime
['Serbia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'shares border with', {'concept': 'regime'}] ['Serbia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'shares border with', {'concept': 'regime'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { resource:Serbia property:shares_border_with ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Serbia property:shares_border_with ?a . ?a rdf:type ontology:regime } }
[]
designation for an administrative territorial entity regime
SYSTEM
9
Q225 Q224 Q222 Q221 Q218 Q219 Q236 Q28 Q1246
(Q403,P47,c(Q15617994)) (Q403,P47,c(Q5589178)) (Q403,P47,c(Q15617994)) (Q403,P47,c(Q5589178))
action count
action union
action filter_type
action find
entity Q403
relation P47
type Q15617994
action filter_type
action find
entity Q403
relation P47
type Q5589178
[ANSWER]
['Q403', 'P47', {'concept': 'Q15617994'}] ['Q403', 'P47', {'concept': 'Q5589178'}] ['Q403', 'P47', {'concept': 'Q15617994'}] ['Q403', 'P47', {'concept': 'Q5589178'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { resource:Q403 property:P47 ?a . ?a rdf:type ontology:Q15617994 } UNION { resource:Q403 property:P47 ?a . ?a rdf:type ontology:Q5589178 } }
Bosnia and Herzegovina Croatia Albania Republic of Macedonia Romania Bulgaria Montenegro Hungary Kosovo
9
action count
action union
action filter_type
action find
entity Serbia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Serbia
relation shares border with
type regime
['Serbia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'shares border with', {'concept': 'regime'}] ['Serbia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Serbia', 'shares border with', {'concept': 'regime'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { { resource:Serbia property:shares_border_with ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Serbia property:shares_border_with ?a . ?a rdf:type ontology:regime } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q403
P36
Q56061
USER
Which administrative territory is known as the capital of Serbia ?
(Q403,P36,c(Q56061))
action filter_type
action find
entity Q403
relation P36
type Q56061
['Q403', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q403 property:P36 ?i . ?i rdf:type ontology:Q56061 }
Serbia
action filter_type
action find
entity Serbia
relation capital
type administrative territorial entity
['Serbia', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Serbia property:capital ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3711
SYSTEM
Belgrade
Q3711
(Q403,P36,c(Q56061))
action filter_type
action find
entity Q403
relation P36
type Q56061
In [ANSWER] is known as the capital of Serbia
['Q403', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q403 property:P36 ?i . ?i rdf:type ontology:Q56061 }
Belgrade
In Belgrade is known as the capital of Serbia
Belgrade
action filter_type
action find
entity Serbia
relation capital
type administrative territorial entity
['Serbia', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Serbia property:capital ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3711 Q28513
P206
Q355304
USER
How many watercourses are located next to Belgrade and Austria-Hungary ?
(Q3711,P206,c(Q355304)) (Q28513,P206,c(Q355304))
action count
action intersection
action filter_type
action find
entity Q3711
relation P206
type Q355304
action filter_type
action find
entity Q28513
relation P206
type Q355304
['Q3711', 'P206', {'concept': 'Q355304'}] ['Q28513', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q3711 property:P206 ?u . ?u rdf:type ontology:Q355304 . resource:Q28513 property:P206 ?u . ?u rdf:type ontology:Q355304 }
Belgrade Austria-Hungary
action count
action intersection
action filter_type
action find
entity Belgrade
relation located next to body of water
type watercourse
action filter_type
action find
entity Austria-Hungary
relation located next to body of water
type watercourse
['Belgrade', 'located next to body of water', {'concept': 'watercourse'}] ['Austria-Hungary', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Belgrade property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse . resource:Austria-Hungary property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse }
[]
watercourse
SYSTEM
2
Q14383 Q1653
(Q3711,P206,c(Q355304)) (Q28513,P206,c(Q355304))
action count
action intersection
action filter_type
action find
entity Q3711
relation P206
type Q355304
action filter_type
action find
entity Q28513
relation P206
type Q355304
[ANSWER]
['Q3711', 'P206', {'concept': 'Q355304'}] ['Q28513', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q3711 property:P206 ?u . ?u rdf:type ontology:Q355304 . resource:Q28513 property:P206 ?u . ?u rdf:type ontology:Q355304 }
Sava Danube
2
action count
action intersection
action filter_type
action find
entity Belgrade
relation located next to body of water
type watercourse
action filter_type
action find
entity Austria-Hungary
relation located next to body of water
type watercourse
['Belgrade', 'located next to body of water', {'concept': 'watercourse'}] ['Austria-Hungary', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Belgrade property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse . resource:Austria-Hungary property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3711
P840
Q838948
USER
Which works of art have a setting location of that administrative territory ?
action filter_type
action find_reverse
entity Q3711
relation P840
type Q838948
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q838948 . ?i property:P840 resource:Q3711 }
Belgrade
action filter_type
action find_reverse
entity Belgrade
relation narrative location
type work of art
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:work_of_art . ?i property:narrative_location resource:Belgrade }
[]
work of art
Q106571 Q2051292 Q1549480
SYSTEM
From Russia with Love, The Parade, Love and Other Crimes
Q2051292 Q12754266 Q2349392 Q1549480 Q106571 Q13425894
action filter_type
action find_reverse
entity Q3711
relation P840
type Q838948
[ANSWERS] have a setting location of that administrative territory
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q838948 . ?i property:P840 resource:Q3711 }
The Parade Circles Clip Love and Other Crimes From Russia with Love The Woman with a Broken Nose
From Russia with Love, The Parade and Love and Other Crimes have a setting location of that administrative territory
From Russia with Love The Parade Love and Other Crimes
action filter_type
action find_reverse
entity Belgrade
relation narrative location
type work of art
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:work_of_art . ?i property:narrative_location resource:Belgrade }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P144
Q838948 Q1001378 Q5398426
USER
How many works of art are less number of cinematic techniques or television series based on than that work of art ?
(c(Q1001378)|c(Q5398426),P144,c(Q838948))
[[{'concept': 'Q1001378'}, {'concept': 'Q5398426'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:P144 ?y } . ?z rdf:type ontology:Q1001378 . ?y rdf:type ontology:Q838948 . ?x rdf:type ontology:Q5398426 }
[[{'concept': 'cinematic technique'}, {'concept': 'television series'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:based_on ?y } . ?z rdf:type ontology:cinematic_technique . ?y rdf:type ontology:work_of_art . ?x rdf:type ontology:television_series }
[]
work of art cinematic technique television series
Comparative|Count over More/Less|Mult. entity type|Clarification
Q2051292
SYSTEM
Did you mean The Parade ?
(c(Q1001378)|c(Q5398426),P144,c(Q838948))
[ANSWER]
[[{'concept': 'Q1001378'}, {'concept': 'Q5398426'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:P144 ?y } . ?z rdf:type ontology:Q1001378 . ?y rdf:type ontology:Q838948 . ?x rdf:type ontology:Q5398426 }
Did you mean The Parade ?
The Parade
[[{'concept': 'cinematic technique'}, {'concept': 'television series'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?e ) { ( ?z ) ( ?x ) } . ?e property:based_on ?y } . ?z rdf:type ontology:cinematic_technique . ?y rdf:type ontology:work_of_art . ?x rdf:type ontology:television_series }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant From Russia with Love. Could you tell me the answer for that?
(c(Q1001378)|c(Q5398426),P144,c(Q838948))
Q106571
[[{'concept': 'Q1001378'}, {'concept': 'Q5398426'}], 'P144', {'concept': 'Q838948'}]
[[{'concept': 'cinematic technique'}, {'concept': 'television series'}], 'based on', {'concept': 'work of art'}]
[]
SYSTEM
0
(c(Q1001378)|c(Q5398426),P144,c(Q838948))
[ANSWER]
[[{'concept': 'Q1001378'}, {'concept': 'Q5398426'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P144 ?y } UNION { ?x property:P144 ?y } } . ?z rdf:type ontology:Q1001378 . ?y rdf:type ontology:Q838948 . ?x rdf:type ontology:Q5398426 }
0
[[{'concept': 'cinematic technique'}, {'concept': 'television series'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:based_on ?y } UNION { ?x property:based_on ?y } } . ?z rdf:type ontology:cinematic_technique . ?y rdf:type ontology:work_of_art . ?x rdf:type ontology:television_series }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q164804
P361
Q838948 Q6619679 Q2031291
USER
How many works of art are more number of fictional humanoids or releases a part of than Underworld ?
(c(Q6619679)|c(Q2031291),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q164804
relation P361
type Q6619679
type Q2031291
[[{'concept': 'Q6619679'}, {'concept': 'Q2031291'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?h ) WHERE { { ?r rdf:type ontology:Q6619679 . ?j rdf:type ontology:Q838948 . ?r property:P361 ?j } UNION { ?r property:P361 ?j . ?j rdf:type ontology:Q838948 . ?r rdf:type ontology:Q2031291 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P361 resource:Q164804 . { VALUES ( ?q ) { ( ontology:Q6619679 ) ( ontology:Q2031291 ) } . ?x rdf:type ?q } } } . FILTER ( ?h > ?o ) }
Underworld
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type release
action count
action filter_multi_types
action find_reverse
entity Underworld
relation part of
type fictional humanoid
type release
[[{'concept': 'fictional humanoid'}, {'concept': 'release'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?h ) WHERE { { ?r rdf:type ontology:fictional_humanoid . ?j rdf:type ontology:work_of_art . ?r property:part_of ?j } UNION { ?r property:part_of ?j . ?j rdf:type ontology:work_of_art . ?r rdf:type ontology:release } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:part_of resource:Underworld . { VALUES ( ?q ) { ( ontology:fictional_humanoid ) ( ontology:release ) } . ?x rdf:type ?q } } } . FILTER ( ?h > ?o ) }
[]
work of art fictional humanoid release
SYSTEM
12
Q2312028 Q15624215 Q372959 Q222867 Q1623056 Q174811 Q472359 Q60072 Q7572454 Q7338317 Q7203413 Q152185
(c(Q6619679)|c(Q2031291),P361,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q6619679
action find_reverse_tuple_counts
relation P361
type Q838948
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q164804
relation P361
type Q6619679
type Q2031291
[ANSWER]
[[{'concept': 'Q6619679'}, {'concept': 'Q2031291'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?h ) WHERE { { ?r rdf:type ontology:Q6619679 . ?j rdf:type ontology:Q838948 . ?r property:P361 ?j } UNION { ?r property:P361 ?j . ?j rdf:type ontology:Q838948 . ?r rdf:type ontology:Q2031291 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:P361 resource:Q164804 . { VALUES ( ?q ) { ( ontology:Q6619679 ) ( ontology:Q2031291 ) } . ?x rdf:type ?q } } } . FILTER ( ?h > ?o ) }
Star Spangled Rhythm Lucy The Towering Inferno 2 Fast 2 Furious The Fighting Temptations Up El Cantante The Sound of Music Space Pirate Captain Harlock Rivers and Tides Playing for Keeps The Legend of Lucy Keyes
12
action count
action greater
action union
action find_reverse_tuple_counts
relation part of
type work of art
type fictional humanoid
action find_reverse_tuple_counts
relation part of
type work of art
type release
action count
action filter_multi_types
action find_reverse
entity Underworld
relation part of
type fictional humanoid
type release
[[{'concept': 'fictional humanoid'}, {'concept': 'release'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?h ) WHERE { { ?r rdf:type ontology:fictional_humanoid . ?j rdf:type ontology:work_of_art . ?r property:part_of ?j } UNION { ?r property:part_of ?j . ?j rdf:type ontology:work_of_art . ?r rdf:type ontology:release } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) WHERE { ?x property:part_of resource:Underworld . { VALUES ( ?q ) { ( ontology:fictional_humanoid ) ( ontology:release ) } . ?x rdf:type ?q } } } . FILTER ( ?h > ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q15731902
P1445
Q838948 Q386724
USER
Which works were described in approximately the same number of works of art as Aladdin media franchise ?
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q15731902
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?c ) WHERE { ?p property:P1445 ?j . ?p rdf:type ontology:Q386724 . ?j rdf:type ontology:Q838948 } GROUP BY ?p } . FILTER ( ?c = ?f ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { resource:Q15731902 property:P1445 ?q . ?q rdf:type ontology:Q386724 } } }
Aladdin media franchise
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Aladdin media franchise
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?c ) WHERE { ?p property:fictional_universe_described_in ?j . ?p rdf:type ontology:work . ?j rdf:type ontology:work_of_art } GROUP BY ?p } . FILTER ( ?c = ?f ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { resource:Aladdin_media_franchise property:fictional_universe_described_in ?q . ?q rdf:type ontology:work } } }
[]
work of art work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q15731902
relation P1445
type Q386724
[ANSWERS] were described in approximately the same number of works of art as Aladdin media franchise
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?c ) WHERE { ?p property:P1445 ?j . ?p rdf:type ontology:Q386724 . ?j rdf:type ontology:Q838948 } GROUP BY ?p } . FILTER ( ?c = ?f ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { resource:Q15731902 property:P1445 ?q . ?q rdf:type ontology:Q386724 } } }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek, Aladdin media franchise and Stargate were described in approximately the same number of works of art as Aladdin media franchise
Shrek Aladdin media franchise Stargate
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Aladdin media franchise
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?c ) WHERE { ?p property:fictional_universe_described_in ?j . ?p rdf:type ontology:work . ?j rdf:type ontology:work_of_art } GROUP BY ?p } . FILTER ( ?c = ?f ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { resource:Aladdin_media_franchise property:fictional_universe_described_in ?q . ?q rdf:type ontology:work } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q11927
P1445
Q838948 Q386724
USER
And what about Stargate?
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q11927
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?h ) WHERE { ?p rdf:type ontology:Q386724 . ?n rdf:type ontology:Q838948 . ?p property:P1445 ?n } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i rdf:type ontology:Q386724 . resource:Q11927 property:P1445 ?i } } . FILTER ( ?h = ?z ) }
Stargate
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Stargate
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?h ) WHERE { ?p rdf:type ontology:work . ?n rdf:type ontology:work_of_art . ?p property:fictional_universe_described_in ?n } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i rdf:type ontology:work . resource:Stargate property:fictional_universe_described_in ?i } } . FILTER ( ?h = ?z ) }
[]
work of art work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
action count
action filter_type
action find
entity Q11927
relation P1445
type Q386724
[ANSWERS]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?h ) WHERE { ?p rdf:type ontology:Q386724 . ?n rdf:type ontology:Q838948 . ?p property:P1445 ?n } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i rdf:type ontology:Q386724 . resource:Q11927 property:P1445 ?i } } . FILTER ( ?h = ?z ) }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek Aladdin media franchise Stargate
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
action count
action filter_type
action find
entity Stargate
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?h ) WHERE { ?p rdf:type ontology:work . ?n rdf:type ontology:work_of_art . ?p property:fictional_universe_described_in ?n } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i rdf:type ontology:work . resource:Stargate property:fictional_universe_described_in ?i } } . FILTER ( ?h = ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q106571 Q1366520
P161
Q502895
USER
How many people were casted in From Russia with Love or Und Jimmy ging zum Regenbogen ?
(Q106571,P161,c(Q502895)) (Q1366520,P161,c(Q502895))
action count
action union
action filter_type
action find
entity Q106571
relation P161
type Q502895
action filter_type
action find
entity Q1366520
relation P161
type Q502895
['Q106571', 'P161', {'concept': 'Q502895'}] ['Q1366520', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { resource:Q106571 property:P161 ?j . ?j rdf:type ontology:Q502895 } UNION { resource:Q1366520 property:P161 ?j . ?j rdf:type ontology:Q502895 } }
From Russia with Love Und Jimmy ging zum Regenbogen
action count
action union
action filter_type
action find
entity From Russia with Love
relation cast member
type common name
action filter_type
action find
entity Und Jimmy ging zum Regenbogen
relation cast member
type common name
['From Russia with Love', 'cast member', {'concept': 'common name'}] ['Und Jimmy ging zum Regenbogen', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { resource:From_Russia_with_Love property:cast_member ?j . ?j rdf:type ontology:common_name } UNION { resource:Und_Jimmy_ging_zum_Regenbogen property:cast_member ?j . ?j rdf:type ontology:common_name } }
[]
common name
SYSTEM
55
Q1459188 Q108972 Q820883 Q102936 Q1600664 Q5614101 Q1249134 Q1387641 Q70270 Q16097476 Q93604 Q871706 Q434602 Q7175594 Q1607064 Q19957132 Q1561141 Q4573 Q120722 Q359996 Q353031 Q1588099 Q61608 Q87325 Q313727 Q323452 Q2546620 Q90334 Q224739 Q2059382 Q1928016 Q5482921 Q89473 Q5543226 Q92262 Q240564 Q2059795 Q90688 Q29092 Q766736 Q1563450 Q496339 Q102961 Q1663641 Q1782003 Q19787940 Q1167986 Q1664759 Q6912318 Q4727565 Q573128 Q17020473 Q232860 Q1733295 Q61552
(Q106571,P161,c(Q502895)) (Q1366520,P161,c(Q502895))
action count
action union
action filter_type
action find
entity Q106571
relation P161
type Q502895
action filter_type
action find
entity Q1366520
relation P161
type Q502895
[ANSWER]
['Q106571', 'P161', {'concept': 'Q502895'}] ['Q1366520', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { resource:Q106571 property:P161 ?j . ?j rdf:type ontology:Q502895 } UNION { resource:Q1366520 property:P161 ?j . ?j rdf:type ontology:Q502895 } }
Friedrich G. Beckhaus Klaus Schwarzkopf Berkely Mather Wolfgang Wahl Heinz Moog Michael Culver Walter Regelsberger Herbert Fleischmann Ruth Leuwerik Nikki van der Zyl Lotte Lenya Ludwig Hirsch Martine Beswick Peter Madden Alain Noury Elizabeth Counsell Günter Tolar Sean Connery Peter Bayliss Pedro Armendáriz Vladek Sheybal Hasan Ceylan Horst Tappert Egon von Jordan Robert Shaw Bernard Lee Walter Varndal Bruno Dallansky Eunice Gayson Paul Edwin Roth Michael Janisch Francis de Wolff Doris Kunstmann George Pastell Judy Winter Daniela Bianchi Paul Glawion Heinz Baumann Desmond Llewelyn Mascha Gonska Nadja Regin Horst Frank Peter Pasetti Fred Haggerty Konrad Georg Dorothea Bennett Eva Zilcher Jochen Brockmann Moris Farhi Aliza Gur Anthony Dawson Fred Wood Lois Maxwell Karl Walter Diess Walter Gotell
55
action count
action union
action filter_type
action find
entity From Russia with Love
relation cast member
type common name
action filter_type
action find
entity Und Jimmy ging zum Regenbogen
relation cast member
type common name
['From Russia with Love', 'cast member', {'concept': 'common name'}] ['Und Jimmy ging zum Regenbogen', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { resource:From_Russia_with_Love property:cast_member ?j . ?j rdf:type ontology:common_name } UNION { resource:Und_Jimmy_ging_zum_Regenbogen property:cast_member ?j . ?j rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3711
P931
Q62447
USER
Which city do Belgrade serve ?
(c(Q62447),P931,Q3711)
action filter_type
action find_reverse
entity Q3711
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q3711']
SELECT DISTINCT ?p WHERE { ?p property:P931 resource:Q3711 . ?p rdf:type ontology:Q62447 }
Belgrade
action filter_type
action find_reverse
entity Belgrade
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Belgrade']
SELECT DISTINCT ?p WHERE { ?p property:place_served_by_airport resource:Belgrade . ?p rdf:type ontology:aerodrome }
[]
aerodrome
Q3543830 Q3543824 Q948600
SYSTEM
Progar Airport, Lisičji Jarak Airport, Batajnica Air Base
Q3543830 Q3543824 Q948600
(c(Q62447),P931,Q3711)
action filter_type
action find_reverse
entity Q3711
relation P931
type Q62447
Belgrade serve [ANSWERS]
[{'concept': 'Q62447'}, 'P931', 'Q3711']
SELECT DISTINCT ?p WHERE { ?p property:P931 resource:Q3711 . ?p rdf:type ontology:Q62447 }
Progar Airport Lisičji Jarak Airport Batajnica Air Base
Belgrade serve Progar Airport, Lisičji Jarak Airport and Batajnica Air Base
Progar Airport Lisičji Jarak Airport Batajnica Air Base
action filter_type
action find_reverse
entity Belgrade
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Belgrade']
SELECT DISTINCT ?p WHERE { ?p property:place_served_by_airport resource:Belgrade . ?p rdf:type ontology:aerodrome }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3711
P937
Q502895
USER
Who works at Belgrade ?
(c(Q502895),P937,Q3711)
action filter_type
action find_reverse
entity Q3711
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q3711']
SELECT DISTINCT ?z WHERE { ?z property:P937 resource:Q3711 . ?z rdf:type ontology:Q502895 }
Belgrade
action filter_type
action find_reverse
entity Belgrade
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Belgrade']
SELECT DISTINCT ?z WHERE { ?z property:work_location resource:Belgrade . ?z rdf:type ontology:common_name }
[]
common name
Q22137356
SYSTEM
Valerija Heybal
Q22137356
(c(Q502895),P937,Q3711)
action filter_type
action find_reverse
entity Q3711
relation P937
type Q502895
[ANSWER] works at Belgrade
[{'concept': 'Q502895'}, 'P937', 'Q3711']
SELECT DISTINCT ?z WHERE { ?z property:P937 resource:Q3711 . ?z rdf:type ontology:Q502895 }
Valerija Heybal
Valerija Heybal works at Belgrade
Valerija Heybal
action filter_type
action find_reverse
entity Belgrade
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Belgrade']
SELECT DISTINCT ?z WHERE { ?z property:work_location resource:Belgrade . ?z rdf:type ontology:common_name }
[]