Simple Question (Direct)
Simple Question
Q16937497
P27
Q1048835
USER
Which political territory is the native country of Giulia Enders ?
(Q16937497,P27,c(Q1048835))
action filter_type
action find
entity Q16937497
relation P27
type Q1048835
['Q16937497', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . resource:Q16937497 property:P27 ?c }
Giulia Enders
action filter_type
action find
entity Giulia Enders
relation country of citizenship
type political territorial entity
['Giulia Enders', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Giulia_Enders property:country_of_citizenship ?c }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q16937497,P27,c(Q1048835))
action filter_type
action find
entity Q16937497
relation P27
type Q1048835
The [ANSWER] is the native country of Giulia Enders
['Q16937497', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . resource:Q16937497 property:P27 ?c }
Germany
The Germany is the native country of Giulia Enders
Germany
action filter_type
action find
entity Giulia Enders
relation country of citizenship
type political territorial entity
['Giulia Enders', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Giulia_Enders property:country_of_citizenship ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16937497
P21
Q290
USER
What is the sex of that person ?
(Q183,P21,c(Q290))
action filter_type
action find
entity Q16937497
relation P21
type Q290
['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q16937497 property:P21 ?e . ?e rdf:type ontology:Q290 }
Giulia Enders
action filter_type
action find
entity Giulia Enders
relation gender
type sex
['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Giulia_Enders property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q183,P21,c(Q290))
action filter_type
action find
entity Q16937497
relation P21
type Q290
The sex of that person is the [ANSWER]
['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q16937497 property:P21 ?e . ?e rdf:type ontology:Q290 }
female
The sex of that person is the female
female
action filter_type
action find
entity Giulia Enders
relation gender
type sex
['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Giulia_Enders property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16937497
P69
Q41176
USER
Which building is the alma mater of Giulia Enders ?
(Q16937497,P69,c(Q41176))
action filter_type
action find
entity Q16937497
relation P69
type Q41176
['Q16937497', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ?a WHERE { resource:Q16937497 property:P69 ?a . ?a rdf:type ontology:Q41176 }
Giulia Enders
action filter_type
action find
entity Giulia Enders
relation educated at
type building
['Giulia Enders', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ?a WHERE { resource:Giulia_Enders property:educated_at ?a . ?a rdf:type ontology:building }
[]
building
Q2496384
SYSTEM
University Hospital Frankfurt
Q2496384
(Q16937497,P69,c(Q41176))
action filter_type
action find
entity Q16937497
relation P69
type Q41176
[ANSWER] is the alma mater of Giulia Enders
['Q16937497', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ?a WHERE { resource:Q16937497 property:P69 ?a . ?a rdf:type ontology:Q41176 }
University Hospital Frankfurt
University Hospital Frankfurt is the alma mater of Giulia Enders
University Hospital Frankfurt
action filter_type
action find
entity Giulia Enders
relation educated at
type building
['Giulia Enders', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ?a WHERE { resource:Giulia_Enders property:educated_at ?a . ?a rdf:type ontology:building }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q1048835 Q838948 Q2031291
USER
How many political territories are the origin of around 1837 works of art and releases ?
(c(Q838948)|c(Q2031291),P495,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2031291
value 1837
[[{'concept': 'Q838948'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?c ) WHERE { { ?p property:P495 ?b . ?b rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q838948 } UNION { ?p property:P495 ?b . ?p rdf:type ontology:Q2031291 . ?b rdf:type ontology:Q1048835 } } GROUP BY ?b } . FILTER ( ?c = 1837 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type release
value 1837
[[{'concept': 'work of art'}, {'concept': 'release'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?c ) WHERE { { ?p property:country_of_origin ?b . ?b rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:work_of_art } UNION { ?p property:country_of_origin ?b . ?p rdf:type ontology:release . ?b rdf:type ontology:political_territorial_entity } } GROUP BY ?b } . FILTER ( ?c = 1837 ) }
[]
political territorial entity work of art release
SYSTEM
3
Q16 Q35 Q408
(c(Q838948)|c(Q2031291),P495,c(Q1048835))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2031291
value 1837
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?c ) WHERE { { ?p property:P495 ?b . ?b rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q838948 } UNION { ?p property:P495 ?b . ?p rdf:type ontology:Q2031291 . ?b rdf:type ontology:Q1048835 } } GROUP BY ?b } . FILTER ( ?c = 1837 ) }
Canada Denmark Australia
3
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type release
value 1837
[[{'concept': 'work of art'}, {'concept': 'release'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?c ) WHERE { { ?p property:country_of_origin ?b . ?b rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:work_of_art } UNION { ?p property:country_of_origin ?b . ?p rdf:type ontology:release . ?b rdf:type ontology:political_territorial_entity } } GROUP BY ?b } . FILTER ( ?c = 1837 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q1048835 Q2088357 Q2342494
USER
Which political territories are the countries of origin of max number of musical ensembles and collectables ?
(c(Q2088357)|c(Q2342494),P495,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
[[{'concept': 'Q2088357'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?v ) { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2088357 ) ( ontology:Q2342494 ) } } GROUP BY ?f } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?x ) { ( ontology:Q2088357 ) ( ontology:Q2342494 ) } . ?c rdf:type ?x } GROUP BY ?h } . FILTER ( ?n = ?v ) }
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
[[{'concept': 'musical ensemble'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?v ) { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:musical_ensemble ) ( ontology:collectable ) } } GROUP BY ?f } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?x ) { ( ontology:musical_ensemble ) ( ontology:collectable ) } . ?c rdf:type ?x } GROUP BY ?h } . FILTER ( ?n = ?v ) }
[]
political territorial entity musical ensemble collectable
Q16
SYSTEM
Canada
Q16
(c(Q2088357)|c(Q2342494),P495,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
[ANSWER] is the countries of origin of max number of musical ensembles and collectables
[[{'concept': 'Q2088357'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?v ) { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2088357 ) ( ontology:Q2342494 ) } } GROUP BY ?f } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?x ) { ( ontology:Q2088357 ) ( ontology:Q2342494 ) } . ?c rdf:type ?x } GROUP BY ?h } . FILTER ( ?n = ?v ) }
Canada
Canada is the countries of origin of max number of musical ensembles and collectables
Canada
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
[[{'concept': 'musical ensemble'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?v ) { SELECT DISTINCT ?f ( COUNT ( ?z ) AS ?e ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:musical_ensemble ) ( ontology:collectable ) } } GROUP BY ?f } } . { SELECT DISTINCT ?h ( COUNT ( ?c ) AS ?n ) WHERE { VALUES ( ?x ) { ( ontology:musical_ensemble ) ( ontology:collectable ) } . ?c rdf:type ?x } GROUP BY ?h } . FILTER ( ?n = ?v ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16 Q34 Q489134
P530
Q15617994
USER
Does Canada have diplomatic relations with Sweden and Bernhardswald ?
(Q16,P530,Q34) (Q16,P530,Q489134)
action is_in
entity Q16
action intersection
action find_reverse
entity Q34
relation P530
action find_reverse
entity Q489134
relation P530
['Q16', 'P530', 'Q34'] ['Q16', 'P530', 'Q489134']
ASK WHERE { resource:Q16 property:P530 resource:Q34 . resource:Q16 property:P530 resource:Q489134 }
Canada Sweden Bernhardswald
action is_in
entity Canada
action intersection
action find_reverse
entity Sweden
relation diplomatic relation
action find_reverse
entity Bernhardswald
relation diplomatic relation
['Canada', 'diplomatic relation', 'Sweden'] ['Canada', 'diplomatic relation', 'Bernhardswald']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Sweden . resource:Canada property:diplomatic_relation resource:Bernhardswald }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q16,P530,Q34) (Q16,P530,Q489134)
action is_in
entity Q16
action intersection
action find_reverse
entity Q34
relation P530
action find_reverse
entity Q489134
relation P530
[ANSWER]
['Q16', 'P530', 'Q34'] ['Q16', 'P530', 'Q489134']
ASK WHERE { resource:Q16 property:P530 resource:Q34 . resource:Q16 property:P530 resource:Q489134 }
YES and NO respectively
action is_in
entity Canada
action intersection
action find_reverse
entity Sweden
relation diplomatic relation
action find_reverse
entity Bernhardswald
relation diplomatic relation
['Canada', 'diplomatic relation', 'Sweden'] ['Canada', 'diplomatic relation', 'Bernhardswald']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Sweden . resource:Canada property:diplomatic_relation resource:Bernhardswald }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P921
Q838948
USER
Which work of art was primarily based on that political territory ?
action filter_type
action find_reverse
entity Q16
relation P921
type Q838948
SELECT DISTINCT ?t WHERE { ?t property:P921 resource:Q16 . ?t rdf:type ontology:Q838948 }
Canada
action filter_type
action find_reverse
entity Canada
relation main subject
type work of art
SELECT DISTINCT ?t WHERE { ?t property:main_subject resource:Canada . ?t rdf:type ontology:work_of_art }
[]
work of art
Q7741564
SYSTEM
The Importance of Being Icelandic
Q7741564
action filter_type
action find_reverse
entity Q16
relation P921
type Q838948
The Importance of being Icelandic was primarily based on that political territory
SELECT DISTINCT ?t WHERE { ?t property:P921 resource:Q16 . ?t rdf:type ontology:Q838948 }
The Importance of Being Icelandic
The Importance of being Icelandic was primarily based on that political territory
The Importance of Being Icelandic
action filter_type
action find_reverse
entity Canada
relation main subject
type work of art
SELECT DISTINCT ?t WHERE { ?t property:main_subject resource:Canada . ?t rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1445
Q838948 Q386724
USER
Which works are set up by max number of works of art ?
(c(Q386724),P1445,c(Q838948))
action argmax
action find_tuple_counts
relation P1445
type Q386724
type Q838948
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?v ) { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:Q386724 . ?i rdf:type ontology:Q838948 . ?g property:P1445 ?i } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?j ) WHERE { ?s rdf:type ontology:Q386724 . ?a rdf:type ontology:Q838948 . ?s property:P1445 ?a } GROUP BY ?s } . FILTER ( ?j = ?v ) }
action argmax
action find_tuple_counts
relation fictional universe described in
type work
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?v ) { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:work . ?i rdf:type ontology:work_of_art . ?g property:fictional_universe_described_in ?i } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?j ) WHERE { ?s rdf:type ontology:work . ?a rdf:type ontology:work_of_art . ?s property:fictional_universe_described_in ?a } GROUP BY ?s } . FILTER ( ?j = ?v ) }
[]
work of art work
Q384426
SYSTEM
Pirates of the Caribbean
Q384426
(c(Q386724),P1445,c(Q838948))
action argmax
action find_tuple_counts
relation P1445
type Q386724
type Q838948
[ANSWER] is set up by max number of works of art
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?v ) { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:Q386724 . ?i rdf:type ontology:Q838948 . ?g property:P1445 ?i } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?j ) WHERE { ?s rdf:type ontology:Q386724 . ?a rdf:type ontology:Q838948 . ?s property:P1445 ?a } GROUP BY ?s } . FILTER ( ?j = ?v ) }
Pirates of the Caribbean
Pirates of the Caribbean is set up by max number of works of art
Pirates of the Caribbean
action argmax
action find_tuple_counts
relation fictional universe described in
type work
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?v ) { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?y ) WHERE { ?g rdf:type ontology:work . ?i rdf:type ontology:work_of_art . ?g property:fictional_universe_described_in ?i } GROUP BY ?g } } . { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?j ) WHERE { ?s rdf:type ontology:work . ?a rdf:type ontology:work_of_art . ?s property:fictional_universe_described_in ?a } GROUP BY ?s } . FILTER ( ?j = ?v ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q384426
P1080
Q6619679
USER
Which fictional humanoids are featured in that work ?
(c(Q6619679),P1080,Q384426)
action filter_type
action find_reverse
entity Q384426
relation P1080
type Q6619679
[{'concept': 'Q6619679'}, 'P1080', 'Q384426']
SELECT DISTINCT ?p WHERE { ?p property:P1080 resource:Q384426 . ?p rdf:type ontology:Q6619679 }
Pirates of the Caribbean
action filter_type
action find_reverse
entity Pirates of the Caribbean
relation from fictional universe
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'from fictional universe', 'Pirates of the Caribbean']
SELECT DISTINCT ?p WHERE { ?p property:from_fictional_universe resource:Pirates_of_the_Caribbean . ?p rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q1623086 Q1764242 Q202857
SYSTEM
Hector Barbossa, Will Turner, Captain Jack Sparrow
Q1623086 Q2576706 Q671915 Q2732063 Q202857 Q1623044 Q1764242 Q2278783 Q840202 Q3288683 Q1317406 Q601747 Q593185
(c(Q6619679),P1080,Q384426)
action filter_type
action find_reverse
entity Q384426
relation P1080
type Q6619679
[ANSWERS] are featured in that work
[{'concept': 'Q6619679'}, 'P1080', 'Q384426']
SELECT DISTINCT ?p WHERE { ?p property:P1080 resource:Q384426 . ?p rdf:type ontology:Q6619679 }
Hector Barbossa Bill Turner Cutler Beckett Sao Feng Captain Jack Sparrow Elizabeth Swann Will Turner Tia Dalma Davy Jones Weatherby Swann Teague Sparrow Joshamee Gibbs James Norrington
Hector Barbossa, Will Turner and Captain Jack Sparrow are featured in that work
Hector Barbossa Will Turner Captain Jack Sparrow
action filter_type
action find_reverse
entity Pirates of the Caribbean
relation from fictional universe
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'from fictional universe', 'Pirates of the Caribbean']
SELECT DISTINCT ?p WHERE { ?p property:from_fictional_universe resource:Pirates_of_the_Caribbean . ?p rdf:type ontology:fictional_humanoid }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P793
Q1656682 Q1190554 Q41176
USER
How many buildings are atleast 2 events or events a key event of ?
(c(Q41176),P793,c(Q1656682)|c(Q1190554))
action count
action atleast
action union
action find_tuple_counts
relation P793
type Q41176
type Q1656682
action find_tuple_counts
relation P793
type Q41176
type Q1190554
value 2
[{'concept': 'Q41176'}, 'P793', [{'concept': 'Q1656682'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?t ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1656682 ) ( ontology:Q1190554 ) } } GROUP BY ?c } . FILTER ( ?t >= 2 ) }
action count
action atleast
action union
action find_tuple_counts
relation significant event
type building
type event
action find_tuple_counts
relation significant event
type building
type event
value 2
[{'concept': 'building'}, 'significant event', [{'concept': 'event'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?t ) WHERE { { ?c property:significant_event ?i . ?c rdf:type ontology:building . ?i rdf:type ontology:event } UNION { ?i rdf:type ontology:event . ?c rdf:type ontology:building . ?c property:significant_event ?i } } GROUP BY ?c } . FILTER ( ?t >= 2 ) }
[]
event event building
SYSTEM
12
Q674032 Q321040 Q15649756 Q1781884 Q15911383 Q1642585 Q3399781 Q12495 Q20974169 Q15728912 Q6724382 Q801555
(c(Q41176),P793,c(Q1656682)|c(Q1190554))
action count
action atleast
action union
action find_tuple_counts
relation P793
type Q41176
type Q1656682
action find_tuple_counts
relation P793
type Q41176
type Q1190554
value 2
[ANSWER]
[{'concept': 'Q41176'}, 'P793', [{'concept': 'Q1656682'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?t ) WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1656682 ) ( ontology:Q1190554 ) } } GROUP BY ?c } . FILTER ( ?t >= 2 ) }
Vigadó Concert Hall Seat of the European Central Bank Heussallee 5 Konrad-Adenauer-Haus Karl-Broel-Straße 2 Kreuzbauten 48-52 rue du Louvre Burj Khalifa 133 avenue des Champs-Élysées Rheinpromenade 7 Mackenzie King Village Veendam railway station
12
action count
action atleast
action union
action find_tuple_counts
relation significant event
type building
type event
action find_tuple_counts
relation significant event
type building
type event
value 2
[{'concept': 'building'}, 'significant event', [{'concept': 'event'}, {'concept': 'event'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?i ) AS ?t ) WHERE { { ?c property:significant_event ?i . ?c rdf:type ontology:building . ?i rdf:type ontology:event } UNION { ?i rdf:type ontology:event . ?c rdf:type ontology:building . ?c property:significant_event ?i } } GROUP BY ?c } . FILTER ( ?t >= 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3317773 Q34
P530 P1376
Q1048835
USER
Which political territories have diplomatic relationships with Sweden or have Contamana as their capital ?
OR((Q34,P530,c(Q1048835)), (Q3317773,P1376,c(Q1048835)))
action filter_type
action union
action find
entity Q34
relation P530
action find
entity Q3317773
relation P1376
type Q1048835
{'OR': [['Q34', 'P530', {'concept': 'Q1048835'}], ['Q3317773', 'P1376', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3317773 property:P1376 ?e } UNION { resource:Q34 property:P530 ?e } } . ?e rdf:type ontology:Q1048835 }
Contamana Sweden
action filter_type
action union
action find
entity Sweden
relation diplomatic relation
action find
entity Contamana
relation capital of
type political territorial entity
{'OR': [['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Contamana', 'capital of', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Contamana property:capital_of ?e } UNION { resource:Sweden property:diplomatic_relation ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q5164916 Q16 Q183 Q408
SYSTEM
Contamana District, Canada, Germany, Australia
Q5164916 Q16 Q183 Q408
OR((Q34,P530,c(Q1048835)), (Q3317773,P1376,c(Q1048835)))
action filter_type
action union
action find
entity Q34
relation P530
action find
entity Q3317773
relation P1376
type Q1048835
[ANSWERS] have diplomatic relationships with Sweden or have Contamana as their capital
{'OR': [['Q34', 'P530', {'concept': 'Q1048835'}], ['Q3317773', 'P1376', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3317773 property:P1376 ?e } UNION { resource:Q34 property:P530 ?e } } . ?e rdf:type ontology:Q1048835 }
Contamana District Canada Germany Australia
Contamana District, Canada, Germany and Australia have diplomatic relationships with Sweden or have Contamana as their capital
Contamana District Canada Germany Australia
action filter_type
action union
action find
entity Sweden
relation diplomatic relation
action find
entity Contamana
relation capital of
type political territorial entity
{'OR': [['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Contamana', 'capital of', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Contamana property:capital_of ?e } UNION { resource:Sweden property:diplomatic_relation ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relationships with atleast 2 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?e ) WHERE { ?p property:P530 ?q . ?q rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?e >= 2 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?e ) WHERE { ?p property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?e >= 2 ) }
[]
political territorial entity political territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 2
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?e ) WHERE { ?p property:P530 ?q . ?q rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?e >= 2 ) }
Austria Germany Australia Denmark Canada New Zealand
6
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?e ) WHERE { ?p property:diplomatic_relation ?q . ?q rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?e >= 2 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q183 Q16
P27
Q502895
USER
Which people are civilians of Canada and Germany ?
AND((c(Q502895),P27,Q16), (c(Q502895),P27,Q183))
action filter_type
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q183
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q16'], [{'concept': 'Q502895'}, 'P27', 'Q183']]}
SELECT DISTINCT ?x WHERE { ?x property:P27 resource:Q16 . ?x property:P27 resource:Q183 . ?x rdf:type ontology:Q502895 }
Germany Canada
action filter_type
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Canada'], [{'concept': 'common name'}, 'country of citizenship', 'Germany']]}
SELECT DISTINCT ?x WHERE { ?x property:country_of_citizenship resource:Canada . ?x property:country_of_citizenship resource:Germany . ?x rdf:type ontology:common_name }
[]
common name
Q835949 Q119876 Q98955 Q67353 Q111182 Q2283751 Q827530 Q3960438 Q2174147 Q6381107
SYSTEM
Some of them are Rob Zepp, Garrett Festerling, Gustav Konstantin von Alvensleben, Frederick Traugott Pursh, Hinrich Bitter-Suermann, Siegfried Schopflocher, T. J. Mulock, Sigrid Chatel, Rudolf Woller, Shane Peacock
Q880500 Q320003 Q2174147 Q1331308 Q216249 Q15840131 Q98955 Q1803667 Q876618 Q214206 Q91377 Q1162743 Q3499060 Q67353 Q98219 Q477297 Q77729 Q3960438 Q944628 Q216753 Q65821 Q111182 Q2262225 Q1270025 Q372237 Q933719 Q88532 Q1655519 Q16214382 Q6381529 Q1544890 Q1596867 Q1740249 Q91424 Q1604030 Q2283751 Q827530 Q97143 Q1450488 Q1077260 Q103559 Q1789066 Q6381107 Q1683968 Q15854970 Q237825 Q92539 Q825288 Q835949 Q96996 Q2170893 Q3780317 Q1430565 Q121391 Q3161171 Q76602 Q1352502 Q830593 Q77027 Q15454116 Q1795048 Q119876 Q440283 Q71819 Q1077307 Q1520809 Q910675 Q69218 Q1933201 Q3355873 Q1933642 Q454228 Q1424336 Q1315664 Q2560998 Q6836986 Q1731160 Q438689 Q324325
AND((c(Q502895),P27,Q16), (c(Q502895),P27,Q183))
action filter_type
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q183
relation P27
type Q502895
[ANSWERS] are civilians of Canada and Germany
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q16'], [{'concept': 'Q502895'}, 'P27', 'Q183']]}
SELECT DISTINCT ?x WHERE { ?x property:P27 resource:Q16 . ?x property:P27 resource:Q183 . ?x rdf:type ontology:Q502895 }
Sven Butenschön Ralph Krueger Rudolf Woller Elizabeth Rummel Peter Flinsch Peter Paul Ochs Gustav Konstantin von Alvensleben Lanny Gare Boris Rousson Max Stern Hans Schwerdtfeger Daniel Sparre Steve Pinizzotto Frederick Traugott Pursh Erwin Schild John Tripp Ursula Franklin Sigrid Chatel Ron Fischer Rick Girard Franz-Paul Decker Hinrich Bitter-Suermann Sean O'Connor Herbert Jantzen Mike Card Willie Huber Karl Stern Ian Gordon Pat Curcio Wally Schreiber Greg Evtushevski Wolf-Dietrich Leers Kevin Schmidt Walter Mandler Albert Helmut Rauca Siegfried Schopflocher T. J. Mulock Frederick Philip Grove Bob Geale Chris Hahn John Voss Kris Sparre Shane Peacock Jason Pinizzotto Wolf Kroeger John Polanyi William Berczy Jeff Szwez Rob Zepp Fritz Heichelheim Roy Roedger Gunter Wyszecki Mark Kosick Eckhard Meinrenken James Hyndman Gerhard Herzberg Mark Heatley Jason Holland Anke Engelke Heino Heiden Kyle Helms Garrett Festerling Dany Heatley Elisabeth Mann-Borgese Chris Heid Steve Junker Brett Breitkreuz Frédéric Back Mike Heidt Orest Romashyna Mikhail Nemirovsky Mandy Valentine Terry Campbell Peter Flache Werner David Feist Michelle Darvill Karl Friesen Jasmin Glaesser Darin Olver
Rob Zepp, Garrett Festerling, Gustav Konstantin von Alvensleben, Frederick Traugott Pursh, Hinrich Bitter-Suermann, Siegfried Schopflocher, T. J. Mulock, Sigrid Chatel, Rudolf Woller and Shane Peacock are civilians of Canada and Germany
Rob Zepp Garrett Festerling Gustav Konstantin von Alvensleben Frederick Traugott Pursh Hinrich Bitter-Suermann Siegfried Schopflocher T. J. Mulock Sigrid Chatel Rudolf Woller Shane Peacock
action filter_type
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Canada'], [{'concept': 'common name'}, 'country of citizenship', 'Germany']]}
SELECT DISTINCT ?x WHERE { ?x property:country_of_citizenship resource:Canada . ?x property:country_of_citizenship resource:Germany . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q3317773
P19 P21
Q502895
USER
Which people were born at Contamana and have the gender as male ?
AND((c(Q502895),P19,Q3317773), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3317773
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q3317773'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P19 resource:Q3317773 . ?f property:P21 resource:Q6581097 }
male Contamana
action filter_type
action intersection
action find_reverse
entity Contamana
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Contamana'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:place_of_birth resource:Contamana . ?f property:gender resource:male }
[]
common name
Q5935081
SYSTEM
Jorge Foinquinos
Q5935081
AND((c(Q502895),P19,Q3317773), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3317773
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] was born at Contamana and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q3317773'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?f property:P19 resource:Q3317773 . ?f property:P21 resource:Q6581097 }
Jorge Foinquinos
Jorge Foinquinos was born at Contamana and have the gender as male
Jorge Foinquinos
action filter_type
action intersection
action find_reverse
entity Contamana
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Contamana'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?f property:place_of_birth resource:Contamana . ?f property:gender resource:male }
[]