Simple Question (Direct)
Simple Question
Q1890141
P1344
Q16510064
USER
Which sporting event did Olavi Rokka participate in ?
(Q1890141,P1344,c(Q16510064))
action filter_type
action find
entity Q1890141
relation P1344
type Q16510064
['Q1890141', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?a WHERE { resource:Q1890141 property:P1344 ?a . ?a rdf:type ontology:Q16510064 }
Olavi Rokka
action filter_type
action find
entity Olavi Rokka
relation participant of
type sporting event
['Olavi Rokka', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?a WHERE { resource:Olavi_Rokka property:participant_of ?a . ?a rdf:type ontology:sporting_event }
[]
sporting event
Q683022
SYSTEM
Modern pentathlon at the 1952 Summer Olympics
Q683022
(Q1890141,P1344,c(Q16510064))
action filter_type
action find
entity Q1890141
relation P1344
type Q16510064
Olavi Rokka participated in [ANSWER]
['Q1890141', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?a WHERE { resource:Q1890141 property:P1344 ?a . ?a rdf:type ontology:Q16510064 }
Modern pentathlon at the 1952 Summer Olympics
Olavi Rokka participated in Modern pentathlon at the 1952 Summer Olympics
Modern pentathlon at the 1952 Summer Olympics
action filter_type
action find
entity Olavi Rokka
relation participant of
type sporting event
['Olavi Rokka', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?a WHERE { resource:Olavi_Rokka property:participant_of ?a . ?a rdf:type ontology:sporting_event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1890141
P21
Q290
USER
What is the sex of that person ?
(Q683022,P21,c(Q290))
action filter_type
action find
entity Q1890141
relation P21
type Q290
['Q683022', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1890141 property:P21 ?x . ?x rdf:type ontology:Q290 }
Olavi Rokka
action filter_type
action find
entity Olavi Rokka
relation gender
type sex
['Modern pentathlon at the 1952 Summer Olympics', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Olavi_Rokka property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q683022,P21,c(Q290))
action filter_type
action find
entity Q1890141
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q683022', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q1890141 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Olavi Rokka
relation gender
type sex
['Modern pentathlon at the 1952 Summer Olympics', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Olavi_Rokka property:gender ?x . ?x rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1152808
P115
Q811979 Q16510064
USER
How many architectural structures are the grounds of greater number of sporting events than Stradey Park ?
(c(Q16510064),P115,c(Q811979))
action count
action greater
action find_reverse_tuple_counts
relation P115
type Q811979
type Q16510064
action count
action filter_type
action find
entity Q1152808
relation P115
type Q811979
[{'concept': 'Q16510064'}, 'P115', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Q1152808 property:P115 ?o . ?o rdf:type ontology:Q811979 } } . FILTER ( ?e > ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P115 ?g . ?z rdf:type ontology:Q16510064 . ?g rdf:type ontology:Q811979 } GROUP BY ?g } }
Stradey Park
action count
action greater
action find_reverse_tuple_counts
relation home venue
type architectural structure
type sporting event
action count
action filter_type
action find
entity Stradey Park
relation home venue
type architectural structure
[{'concept': 'sporting event'}, 'home venue', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Stradey_Park property:home_venue ?o . ?o rdf:type ontology:architectural_structure } } . FILTER ( ?e > ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:home_venue ?g . ?z rdf:type ontology:sporting_event . ?g rdf:type ontology:architectural_structure } GROUP BY ?g } }
[]
architectural structure sporting event
SYSTEM
4
Q2893454 Q7089085 Q24255536 Q7089149
(c(Q16510064),P115,c(Q811979))
action count
action greater
action find_reverse_tuple_counts
relation P115
type Q811979
type Q16510064
action count
action filter_type
action find
entity Q1152808
relation P115
type Q811979
[ANSWER]
[{'concept': 'Q16510064'}, 'P115', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Q1152808 property:P115 ?o . ?o rdf:type ontology:Q811979 } } . FILTER ( ?e > ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:P115 ?g . ?z rdf:type ontology:Q16510064 . ?g rdf:type ontology:Q811979 } GROUP BY ?g } }
Deodoro Arena Olympic Hockey Center Future Arena Carioca Arena 1
4
action count
action greater
action find_reverse_tuple_counts
relation home venue
type architectural structure
type sporting event
action count
action filter_type
action find
entity Stradey Park
relation home venue
type architectural structure
[{'concept': 'sporting event'}, 'home venue', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { resource:Stradey_Park property:home_venue ?o . ?o rdf:type ontology:architectural_structure } } . FILTER ( ?e > ?p ) . { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?e ) WHERE { ?z property:home_venue ?g . ?z rdf:type ontology:sporting_event . ?g rdf:type ontology:architectural_structure } GROUP BY ?g } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q5400212
P115
Q811979 Q16510064
USER
And how about Estadio Folke Anderson?
(c(Q16510064),P115,c(Q811979))
action count
action greater
action find_reverse_tuple_counts
relation P115
type Q811979
type Q16510064
action count
action filter_type
action find
entity Q5400212
relation P115
type Q811979
[{'concept': 'Q16510064'}, 'P115', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:P115 ?q . ?q rdf:type ontology:Q811979 . ?t rdf:type ontology:Q16510064 } GROUP BY ?q } . FILTER ( ?r > ?o ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Q5400212 property:P115 ?l . ?l rdf:type ontology:Q811979 } } }
Estadio Folke Anderson
action count
action greater
action find_reverse_tuple_counts
relation home venue
type architectural structure
type sporting event
action count
action filter_type
action find
entity Estadio Folke Anderson
relation home venue
type architectural structure
[{'concept': 'sporting event'}, 'home venue', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:home_venue ?q . ?q rdf:type ontology:architectural_structure . ?t rdf:type ontology:sporting_event } GROUP BY ?q } . FILTER ( ?r > ?o ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Estadio_Folke_Anderson property:home_venue ?l . ?l rdf:type ontology:architectural_structure } } }
[]
architectural structure sporting event
SYSTEM
4
Q2893454 Q7089085 Q24255536 Q7089149
(c(Q16510064),P115,c(Q811979))
action count
action greater
action find_reverse_tuple_counts
relation P115
type Q811979
type Q16510064
action count
action filter_type
action find
entity Q5400212
relation P115
type Q811979
[ANSWER]
[{'concept': 'Q16510064'}, 'P115', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:P115 ?q . ?q rdf:type ontology:Q811979 . ?t rdf:type ontology:Q16510064 } GROUP BY ?q } . FILTER ( ?r > ?o ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Q5400212 property:P115 ?l . ?l rdf:type ontology:Q811979 } } }
Deodoro Arena Olympic Hockey Center Future Arena Carioca Arena 1
4
action count
action greater
action find_reverse_tuple_counts
relation home venue
type architectural structure
type sporting event
action count
action filter_type
action find
entity Estadio Folke Anderson
relation home venue
type architectural structure
[{'concept': 'sporting event'}, 'home venue', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?r ) WHERE { ?t property:home_venue ?q . ?q rdf:type ontology:architectural_structure . ?t rdf:type ontology:sporting_event } GROUP BY ?q } . FILTER ( ?r > ?o ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { resource:Estadio_Folke_Anderson property:home_venue ?l . ?l rdf:type ontology:architectural_structure } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q683022
P641
Q31629
USER
What did Modern pentathlon at the 1952 Summer Olympics participate in ?
(Q683022,P641,c(Q31629))
action filter_type
action find
entity Q683022
relation P641
type Q31629
['Q683022', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q31629 . resource:Q683022 property:P641 ?a }
Modern pentathlon at the 1952 Summer Olympics
action filter_type
action find
entity Modern pentathlon at the 1952 Summer Olympics
relation sport
type type of sport
['Modern pentathlon at the 1952 Summer Olympics', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_sport . resource:Modern_pentathlon_at_the_1952_Summer_Olympics property:sport ?a }
[]
type of sport
Q32485
SYSTEM
modern pentathlon
Q32485
(Q683022,P641,c(Q31629))
action filter_type
action find
entity Q683022
relation P641
type Q31629
[ANSWER] at the 1952 Summer Olympics participated in [ANSWER]
['Q683022', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q31629 . resource:Q683022 property:P641 ?a }
modern pentathlon
Modern pentathlon at the 1952 Summer Olympics participated in modern pentathlon
modern pentathlon
action filter_type
action find
entity Modern pentathlon at the 1952 Summer Olympics
relation sport
type type of sport
['Modern pentathlon at the 1952 Summer Olympics', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:type_of_sport . resource:Modern_pentathlon_at_the_1952_Summer_Olympics property:sport ?a }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q32485 Q3350922
P641
Q502895
USER
Does Olivier Clergeau play that type of sport ?
(Q3350922,P641,Q32485)
action is_in
entity Q32485
action find
entity Q3350922
relation P641
['Q3350922', 'P641', 'Q32485']
ASK WHERE { resource:Q3350922 property:P641 resource:Q32485 }
modern pentathlon Olivier Clergeau
action is_in
entity modern pentathlon
action find
entity Olivier Clergeau
relation sport
['Olivier Clergeau', 'sport', 'modern pentathlon']
ASK WHERE { resource:Olivier_Clergeau property:sport resource:modern_pentathlon }
[]
common name
SYSTEM
YES
(Q3350922,P641,Q32485)
action is_in
entity Q32485
action find
entity Q3350922
relation P641
[ANSWER]
['Q3350922', 'P641', 'Q32485']
ASK WHERE { resource:Q3350922 property:P641 resource:Q32485 }
Yes
action is_in
entity modern pentathlon
action find
entity Olivier Clergeau
relation sport
['Olivier Clergeau', 'sport', 'modern pentathlon']
ASK WHERE { resource:Olivier_Clergeau property:sport resource:modern_pentathlon }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q14630098 Q683022
P17
Q15617994
USER
Which administrative territories are Modern pentathlon at the 1952 Summer Olympics or El Parral Municipality located in ?
OR((Q683022,P17,c(Q15617994)), (Q14630098,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q683022
relation P17
action find
entity Q14630098
relation P17
type Q15617994
{'OR': [['Q683022', 'P17', {'concept': 'Q15617994'}], ['Q14630098', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q683022 property:P17 ?r } UNION { resource:Q14630098 property:P17 ?r } } }
El Parral Municipality Modern pentathlon at the 1952 Summer Olympics
action filter_type
action union
action find
entity Modern pentathlon at the 1952 Summer Olympics
relation country
action find
entity El Parral Municipality
relation country
type designation for an administrative territorial entity
{'OR': [['Modern pentathlon at the 1952 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}], ['El Parral Municipality', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Modern_pentathlon_at_the_1952_Summer_Olympics property:country ?r } UNION { resource:El_Parral_Municipality property:country ?r } } }
[]
designation for an administrative territorial entity
Q33 Q96
SYSTEM
Finland, Mexico
Q33 Q96
OR((Q683022,P17,c(Q15617994)), (Q14630098,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q683022
relation P17
action find
entity Q14630098
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q683022', 'P17', {'concept': 'Q15617994'}], ['Q14630098', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q683022 property:P17 ?r } UNION { resource:Q14630098 property:P17 ?r } } }
Finland Mexico
Which administrative territories are Modern pentathlon at the 1952 Summer Olympics or El Parral Municipality located in
Finland Mexico
action filter_type
action union
action find
entity Modern pentathlon at the 1952 Summer Olympics
relation country
action find
entity El Parral Municipality
relation country
type designation for an administrative territorial entity
{'OR': [['Modern pentathlon at the 1952 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}], ['El Parral Municipality', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Modern_pentathlon_at_the_1952_Summer_Olympics property:country ?r } UNION { resource:El_Parral_Municipality property:country ?r } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with around 104 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 104
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?l ) WHERE { ?z property:P530 ?o . ?z rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?l = 104 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 104
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?l ) WHERE { ?z property:diplomatic_relation ?o . ?z rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?l = 104 ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 104
[ANSWERS] have a diplomatic relationship with around 104 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?l ) WHERE { ?z property:P530 ?o . ?z rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?l = 104 ) }
Germany Australia
Germany and Australia have a diplomatic relationship with around 104 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 104
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?l ) WHERE { ?z property:diplomatic_relation ?o . ?z rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?l = 104 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q312078
P495
Q838948
USER
Do Speed Racer have those political territories as their place of origin ?
(Q312078,P495,Q183) (Q312078,P495,Q408)
action is_in
entity prev_answer
action find
entity Q312078
relation P495
['Q312078', 'P495', 'Q183'] ['Q312078', 'P495', 'Q408']
ASK WHERE { resource:Q312078 property:P495 ?m . VALUES ( ?m ) { ( resource:Q183 ) ( resource:Q408 ) } }
Speed Racer
action is_in
entity prev_answer
action find
entity Speed Racer
relation country of origin
['Speed Racer', 'country of origin', 'Germany'] ['Speed Racer', 'country of origin', 'Australia']
ASK WHERE { resource:Speed_Racer property:country_of_origin ?m . VALUES ( ?m ) { ( resource:Germany ) ( resource:Australia ) } }
[]
work of art
SYSTEM
YES
(Q312078,P495,Q183) (Q312078,P495,Q408)
action is_in
entity prev_answer
action find
entity Q312078
relation P495
[ANSWER]
['Q312078', 'P495', 'Q183'] ['Q312078', 'P495', 'Q408']
ASK WHERE { resource:Q312078 property:P495 ?m . VALUES ( ?m ) { ( resource:Q183 ) ( resource:Q408 ) } }
Yes
action is_in
entity prev_answer
action find
entity Speed Racer
relation country of origin
['Speed Racer', 'country of origin', 'Germany'] ['Speed Racer', 'country of origin', 'Australia']
ASK WHERE { resource:Speed_Racer property:country_of_origin ?m . VALUES ( ?m ) { ( resource:Germany ) ( resource:Australia ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q190861
P6
Q502895
USER
How many people do Germany or Central Administrative Department serve as the head of government for ?
(Q183,P6,c(Q502895)) (Q190861,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q183
relation P6
type Q502895
action filter_type
action find
entity Q190861
relation P6
type Q502895
['Q183', 'P6', {'concept': 'Q502895'}] ['Q190861', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?j property:P6 ?b . VALUES ( ?j ) { ( resource:Q190861 ) ( resource:Q183 ) } }
Germany Central Administrative Department
action count
action union
action filter_type
action find
entity Germany
relation head of government
type common name
action filter_type
action find
entity Central Administrative Department
relation head of government
type common name
['Germany', 'head of government', {'concept': 'common name'}] ['Central Administrative Department', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?j property:head_of_government ?b . VALUES ( ?j ) { ( resource:Central_Administrative_Department ) ( resource:Germany ) } }
[]
common name
SYSTEM
10
Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q213542 Q567
(Q183,P6,c(Q502895)) (Q190861,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q183
relation P6
type Q502895
action filter_type
action find
entity Q190861
relation P6
type Q502895
[ANSWER]
['Q183', 'P6', {'concept': 'Q502895'}] ['Q190861', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?j property:P6 ?b . VALUES ( ?j ) { ( resource:Q190861 ) ( resource:Q183 ) } }
Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Heinrich Friedrich Karl vom und zum Stein Angela Merkel
10
action count
action union
action filter_type
action find
entity Germany
relation head of government
type common name
action filter_type
action find
entity Central Administrative Department
relation head of government
type common name
['Germany', 'head of government', {'concept': 'common name'}] ['Central Administrative Department', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { ?j property:head_of_government ?b . VALUES ( ?j ) { ( resource:Central_Administrative_Department ) ( resource:Germany ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q172353
P22
Q502895
USER
How many people were the father of Pyrrhus ?
(Q172353,P22,c(Q502895))
action count
action filter_type
action find
entity Q172353
relation P22
type Q502895
['Q172353', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q172353 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Pyrrhus
action count
action filter_type
action find
entity Pyrrhus
relation father
type common name
['Pyrrhus', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Pyrrhus property:father ?u . ?u rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q403377
(Q172353,P22,c(Q502895))
action count
action filter_type
action find
entity Q172353
relation P22
type Q502895
[ANSWER]
['Q172353', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q172353 property:P22 ?u . ?u rdf:type ontology:Q502895 }
Aeacides of Epirus
1
action count
action filter_type
action find
entity Pyrrhus
relation father
type common name
['Pyrrhus', 'father', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Pyrrhus property:father ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172353
P119
Q178885
USER
Which deity is the tomb of that person ?
action filter_type
action find
entity Q172353
relation P119
type Q178885
SELECT DISTINCT ?f WHERE { resource:Q172353 property:P119 ?f . ?f rdf:type ontology:Q178885 }
Pyrrhus
action filter_type
action find
entity Pyrrhus
relation place of burial
type deity
SELECT DISTINCT ?f WHERE { resource:Pyrrhus property:place_of_burial ?f . ?f rdf:type ontology:deity }
[]
deity
Q40730
SYSTEM
Demeter
Q40730
action filter_type
action find
entity Q172353
relation P119
type Q178885
[ANSWER] is the tomb of that person
SELECT DISTINCT ?f WHERE { resource:Q172353 property:P119 ?f . ?f rdf:type ontology:Q178885 }
Demeter
Demeter is the tomb of that person
Demeter
action filter_type
action find
entity Pyrrhus
relation place of burial
type deity
SELECT DISTINCT ?f WHERE { resource:Pyrrhus property:place_of_burial ?f . ?f rdf:type ontology:deity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q736
P530
Q15617994 Q1048835
USER
Which administrative territories holds diplomatic relationship with more number of political territories than Ecuador ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q736
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { ?h property:P530 ?u . ?h rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:Q15617994 . resource:Q736 property:P530 ?g } } . FILTER ( ?s > ?k ) }
Ecuador
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Ecuador
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { ?h property:diplomatic_relation ?u . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ecuador property:diplomatic_relation ?g } } . FILTER ( ?s > ?k ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q736
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with more number of political territories than Ecuador
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { ?h property:P530 ?u . ?h rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:Q15617994 . resource:Q736 property:P530 ?g } } . FILTER ( ?s > ?k ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Italy, Brazil and United States of America hold diplomatic relationship with more number of political territories than Ecuador
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Ecuador
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?s ) WHERE { ?h property:diplomatic_relation ?u . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ecuador property:diplomatic_relation ?g } } . FILTER ( ?s > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1028
P530
Q15617994 Q1048835
USER
And how about Morocco?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1028
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?g ) WHERE { ?i rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 . ?i property:P530 ?d } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Q1028 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?w ) }
Morocco
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Morocco
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?g ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?i property:diplomatic_relation ?d } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Morocco property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?w ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1028
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?g ) WHERE { ?i rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 . ?i property:P530 ?d } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Q1028 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?w ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Morocco
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?d ) AS ?g ) WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity . ?i property:diplomatic_relation ?d } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Morocco property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?w ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q38 Q155 Q30
P530
Q1048835
USER
Which political territories have diplomatic relations with Italy, Brazil and United States of America ?
(c(Q1048835),P530,Q38) (c(Q1048835),P530,Q155) (c(Q1048835),P530,Q30)
action union
action filter_type
action find
entity Q38
relation P530
type Q1048835
action filter_type
action find
entity Q155
relation P530
type Q1048835
action filter_type
action find
entity Q30
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q38'] [{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q30']
SELECT DISTINCT ?i WHERE { VALUES ( ?e ) { ( resource:Q38 ) ( resource:Q155 ) } . ?e property:P530 ?i }
Italy Brazil United States of America
action union
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Italy'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'United States of America']
SELECT DISTINCT ?i WHERE { VALUES ( ?e ) { ( resource:Italy ) ( resource:Brazil ) } . ?e property:diplomatic_relation ?i }
[]
political territorial entity
Q183 Q183 Q183
SYSTEM
Germany
Q664 Q408 Q35 Q183 Q16 Q40 Q766 Q408 Q35 Q183 Q16 Q408 Q183 Q16
(c(Q1048835),P530,Q38) (c(Q1048835),P530,Q155) (c(Q1048835),P530,Q30)
action union
action filter_type
action find
entity Q38
relation P530
type Q1048835
action filter_type
action find
entity Q155
relation P530
type Q1048835
action filter_type
action find
entity Q30
relation P530
type Q1048835
[ANSWER], [ANSWER] and [ANSWER] have diplomatic relations with Italy, Brazil and United States of America
[{'concept': 'Q1048835'}, 'P530', 'Q38'] [{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q30']
SELECT DISTINCT ?i WHERE { VALUES ( ?e ) { ( resource:Q38 ) ( resource:Q155 ) } . ?e property:P530 ?i }
New Zealand Australia Denmark Germany Canada Austria Jamaica Australia Denmark Germany Canada Australia Germany Canada
Germany, Germany and Germany have diplomatic relations with Italy, Brazil and United States of America
Germany Germany Germany
action union
action filter_type
action find
entity Italy
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Italy'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'United States of America']
SELECT DISTINCT ?i WHERE { VALUES ( ?e ) { ( resource:Italy ) ( resource:Brazil ) } . ?e property:diplomatic_relation ?i }
[]