Simple Question (Direct)
Simple Question
Q5552871
P735
Q82799
USER
What the name that Gerry Mays is known by ?
(Q5552871,P735,c(Q82799))
action filter_type
action find
entity Q5552871
relation P735
type Q82799
['Q5552871', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { resource:Q5552871 property:P735 ?c . ?c rdf:type ontology:Q82799 }
Gerry Mays
action filter_type
action find
entity Gerry Mays
relation given name
type name
['Gerry Mays', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { resource:Gerry_Mays property:given_name ?c . ?c rdf:type ontology:name }
[]
name
Q1514838
SYSTEM
Gerry
Q1514838
(Q5552871,P735,c(Q82799))
action filter_type
action find
entity Q5552871
relation P735
type Q82799
Known [ANSWER]
['Q5552871', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { resource:Q5552871 property:P735 ?c . ?c rdf:type ontology:Q82799 }
Gerry
Known Gerry
Gerry
action filter_type
action find
entity Gerry Mays
relation given name
type name
['Gerry Mays', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { resource:Gerry_Mays property:given_name ?c . ?c rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5552871
P641
Q349
USER
What was the sport that Gerry Mays was a part of ?
(Q5552871,P641,c(Q349))
action filter_type
action find
entity Q5552871
relation P641
type Q349
['Q5552871', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q349 . resource:Q5552871 property:P641 ?i }
Gerry Mays
action filter_type
action find
entity Gerry Mays
relation sport
type sport
['Gerry Mays', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sport . resource:Gerry_Mays property:sport ?i }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5552871,P641,c(Q349))
action filter_type
action find
entity Q5552871
relation P641
type Q349
The sport that Gerry Mays was a part of was the [ANSWER]
['Q5552871', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q349 . resource:Q5552871 property:P641 ?i }
association football
The sport that Gerry Mays was a part of was the association football
association football
action filter_type
action find
entity Gerry Mays
relation sport
type sport
['Gerry Mays', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sport . resource:Gerry_Mays property:sport ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5552871
P21
Q290
USER
Which sex does Gerry Mays have ?
(Q5552871,P21,c(Q290))
action filter_type
action find
entity Q5552871
relation P21
type Q290
['Q5552871', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q5552871 property:P21 ?w . ?w rdf:type ontology:Q290 }
Gerry Mays
action filter_type
action find
entity Gerry Mays
relation gender
type sex
['Gerry Mays', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Gerry_Mays property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5552871,P21,c(Q290))
action filter_type
action find
entity Q5552871
relation P21
type Q290
Gerry Mays has a [ANSWER]
['Q5552871', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q5552871 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
Gerry Mays has a male
male
action filter_type
action find
entity Gerry Mays
relation gender
type sex
['Gerry Mays', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Gerry_Mays property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5552871
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Gerry Mays ?
(Q5552871,P27,c(Q15617994))
action filter_type
action find
entity Q5552871
relation P27
type Q15617994
['Q5552871', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q5552871 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Gerry Mays
action filter_type
action find
entity Gerry Mays
relation country of citizenship
type designation for an administrative territorial entity
['Gerry Mays', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Gerry_Mays property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q5552871,P27,c(Q15617994))
action filter_type
action find
entity Q5552871
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Gerry Mays
['Q5552871', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q5552871 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of Gerry Mays
United Kingdom
action filter_type
action find
entity Gerry Mays
relation country of citizenship
type designation for an administrative territorial entity
['Gerry Mays', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Gerry_Mays property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12794838
Q15617994
USER
And also tell me about Lewis Henry Owen Pugh?
(Q12794838,P27,c(Q15617994))
action filter_type
action find
entity Q12794838
relation P27
type Q15617994
['Q12794838', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q12794838 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Lewis Henry Owen Pugh
action filter_type
action find
entity Lewis Henry Owen Pugh
relation country of citizenship
type designation for an administrative territorial entity
['Lewis Henry Owen Pugh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Lewis_Henry_Owen_Pugh property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q12794838,P27,c(Q15617994))
action filter_type
action find
entity Q12794838
relation P27
type Q15617994
[ANSWER]
['Q12794838', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q12794838 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Lewis Henry Owen Pugh
relation country of citizenship
type designation for an administrative territorial entity
['Lewis Henry Owen Pugh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Lewis_Henry_Owen_Pugh property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with exactly 2 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?c = 2 ) . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?c ) WHERE { ?r rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 . ?r property:P530 ?x } GROUP BY ?r } }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?c = 2 ) . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?c ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?x } GROUP BY ?r } }
[]
designation for an administrative territorial entity political territorial entity
Q664
SYSTEM
New Zealand
Q664
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 2
[ANSWER] have tactful political relations with exactly 2 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?c = 2 ) . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?c ) WHERE { ?r rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q15617994 . ?r property:P530 ?x } GROUP BY ?r } }
New Zealand
New Zealand have tactful political relations with exactly 2 administrative territories
New Zealand
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?c = 2 ) . { SELECT DISTINCT ?r ( COUNT ( ?x ) AS ?c ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?x } GROUP BY ?r } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q664
P463
Q43229 Q874405
USER
How many organizations or social groups were New Zealand a member of ?
(Q664,P463,c(Q43229)) (Q664,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q664
relation P463
type Q43229
action filter_type
action find
entity Q664
relation P463
type Q874405
['Q664', 'P463', {'concept': 'Q43229'}] ['Q664', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:Q43229 ) ( ontology:Q874405 ) } }
New Zealand
action count
action union
action filter_type
action find
entity New Zealand
relation member of
type organization
action filter_type
action find
entity New Zealand
relation member of
type social group
['New Zealand', 'member of', {'concept': 'organization'}] ['New Zealand', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:organization ) ( ontology:social_group ) } }
[]
organization social group
SYSTEM
9
Q782942 Q191384 Q656801 Q899770 Q295875 Q7825 Q170481 Q41550 Q827525
(Q664,P463,c(Q43229)) (Q664,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q664
relation P463
type Q43229
action filter_type
action find
entity Q664
relation P463
type Q874405
[ANSWER]
['Q664', 'P463', {'concept': 'Q43229'}] ['Q664', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:Q43229 ) ( ontology:Q874405 ) } }
Australia Group International Bank for Reconstruction and Development International Finance Corporation International Centre for Settlement of Investment Disputes ANZUS World Trade Organization Asia-Pacific Economic Cooperation Organisation for Economic Co-operation and Development International Development Association
9
action count
action union
action filter_type
action find
entity New Zealand
relation member of
type organization
action filter_type
action find
entity New Zealand
relation member of
type social group
['New Zealand', 'member of', {'concept': 'organization'}] ['New Zealand', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:organization ) ( ontology:social_group ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P169
Q502895 Q334453 Q11032
USER
How many people are the chief executive officer of approximately 1 divisions or newspapers ?
(c(Q334453)|c(Q11032),P169,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q334453
action find_reverse_tuple_counts
relation P169
type Q502895
type Q11032
value 1
[[{'concept': 'Q334453'}, {'concept': 'Q11032'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:P169 ?a . ?a rdf:type ontology:Q502895 . ?s rdf:type ontology:Q334453 } UNION { ?s property:P169 ?a . ?a rdf:type ontology:Q502895 . ?s rdf:type ontology:Q11032 } } GROUP BY ?a } . FILTER ( ?j = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type division
action find_reverse_tuple_counts
relation chief executive officer
type common name
type newspaper
value 1
[[{'concept': 'division'}, {'concept': 'newspaper'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:chief_executive_officer ?a . ?a rdf:type ontology:common_name . ?s rdf:type ontology:division } UNION { ?s property:chief_executive_officer ?a . ?a rdf:type ontology:common_name . ?s rdf:type ontology:newspaper } } GROUP BY ?a } . FILTER ( ?j = 1 ) }
[]
common name division newspaper
SYSTEM
17
Q1670490 Q11898683 Q16188729 Q491580 Q429046 Q12588013 Q20203686 Q7608947 Q6070096 Q12606246 Q6161101 Q186601 Q2756226 Q659356 Q11928620 Q10321870 Q11935031
(c(Q334453)|c(Q11032),P169,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q334453
action find_reverse_tuple_counts
relation P169
type Q502895
type Q11032
value 1
[ANSWER]
[[{'concept': 'Q334453'}, {'concept': 'Q11032'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:P169 ?a . ?a rdf:type ontology:Q502895 . ?s rdf:type ontology:Q334453 } UNION { ?s property:P169 ?a . ?a rdf:type ontology:Q502895 . ?s rdf:type ontology:Q11032 } } GROUP BY ?a } . FILTER ( ?j = 1 ) }
Wolfgang Büchner Tuomo Saikkonen Jaume Claramunt i Mesa Eric Mun Jay Park Kim Youngmin José María de Mora Stephen Cooper Pedro Sala y Villaret Yang Min-suk Vicente Díez Canseco Lee Min-woo Simon Dominic Luis José Sartorius, 1st Count of San Luis Josep Laribal Lastortras Lyor Cohen Manuel de Lasarte i Rodríguez-Cardoso
17
action count
action approx
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type division
action find_reverse_tuple_counts
relation chief executive officer
type common name
type newspaper
value 1
[[{'concept': 'division'}, {'concept': 'newspaper'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?s ) AS ?j ) WHERE { { ?s property:chief_executive_officer ?a . ?a rdf:type ontology:common_name . ?s rdf:type ontology:division } UNION { ?s property:chief_executive_officer ?a . ?a rdf:type ontology:common_name . ?s rdf:type ontology:newspaper } } GROUP BY ?a } . FILTER ( ?j = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have a diplomatic relationship with min number of political territories ?
(c(Q1048835),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?n ) WHERE { ?j property:P530 ?o . ?j rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?j } } . { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?u ) WHERE { ?w property:P530 ?q . ?w rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?u = ?y ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?n ) WHERE { ?j property:diplomatic_relation ?o . ?j rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?u ) WHERE { ?w property:diplomatic_relation ?q . ?w rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?u = ?y ) }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWERS] have a diplomatic relationship with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q766']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?n ) WHERE { ?j property:P530 ?o . ?j rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?j } } . { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?u ) WHERE { ?w property:P530 ?q . ?w rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?w } . FILTER ( ?u = ?y ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have a diplomatic relationship with min number of political territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?n ) WHERE { ?j property:diplomatic_relation ?o . ?j rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?j } } . { SELECT DISTINCT ?w ( COUNT ( ?q ) AS ?u ) WHERE { ?w property:diplomatic_relation ?q . ?w rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?w } . FILTER ( ?u = ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q96
P530
Q15617994 Q1048835
USER
How many administrative territories holds diplomatic relationship with greater number of political territories than Mexico ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q96
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?y ) WHERE { ?u property:P530 ?v . ?u rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { resource:Q96 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?y > ?s ) }
Mexico
action count
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 Mexico
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 ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?y ) WHERE { ?u property:diplomatic_relation ?v . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { resource:Mexico property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y > ?s ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
34
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 count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q96
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?y ) WHERE { ?u property:P530 ?v . ?u rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { resource:Q96 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?y > ?s ) }
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
34
action count
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 Mexico
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 ( COUNT ( ?u ) AS ?w ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?y ) WHERE { ?u property:diplomatic_relation ?v . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { resource:Mexico property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y > ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q408
P495
Q1048835 Q838948 Q201658
USER
Which political territories did lesser number of works of art or film genres originate than Australia ?
(c(Q838948)|c(Q201658),P495,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q408
relation P495
type Q838948
type Q201658
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?w ) WHERE { VALUES ( ?t ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?j rdf:type ?t } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:P495 resource:Q408 . { VALUES ( ?r ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?h rdf:type ?r } } } . FILTER ( ?w < ?o ) }
Australia
action less
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 film genre
action count
action filter_multi_types
action find_reverse
entity Australia
relation country of origin
type work of art
type film genre
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?w ) WHERE { VALUES ( ?t ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?j rdf:type ?t } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:country_of_origin resource:Australia . { VALUES ( ?r ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?h rdf:type ?r } } } . FILTER ( ?w < ?o ) }
[]
political territorial entity work of art film genre
Q35 Q40 Q5705
SYSTEM
Denmark, Austria, Catalonia
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q838948)|c(Q201658),P495,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q408
relation P495
type Q838948
type Q201658
[ANSWERS] lesser number of works of art or film genres originated than Australia
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?w ) WHERE { VALUES ( ?t ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?j rdf:type ?t } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:P495 resource:Q408 . { VALUES ( ?r ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?h rdf:type ?r } } } . FILTER ( ?w < ?o ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
Denmark, Austria and Catalonia lesser number of works of art or film genres originated than Australia
Denmark Austria Catalonia
action less
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 film genre
action count
action filter_multi_types
action find_reverse
entity Australia
relation country of origin
type work of art
type film genre
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?w ) WHERE { VALUES ( ?t ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?j rdf:type ?t } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { ?h property:country_of_origin resource:Australia . { VALUES ( ?r ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?h rdf:type ?r } } } . FILTER ( ?w < ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q778
P495
Q1048835 Q838948 Q201658
USER
And how about The Bahamas?
(c(Q838948)|c(Q201658),P495,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q778
relation P495
type Q838948
type Q201658
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?m < ?y ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P495 resource:Q778 . { { ?x rdf:type ontology:Q201658 } UNION { ?x rdf:type ontology:Q838948 } } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?k WHERE { { ?a property:P495 ?k . ?a rdf:type ontology:Q838948 . ?k rdf:type ontology:Q1048835 } UNION { ?a property:P495 ?k . ?k rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q201658 } } GROUP BY ?k } }
The Bahamas
action less
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 film genre
action count
action filter_multi_types
action find_reverse
entity The Bahamas
relation country of origin
type work of art
type film genre
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?m < ?y ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:country_of_origin resource:The_Bahamas . { { ?x rdf:type ontology:film_genre } UNION { ?x rdf:type ontology:work_of_art } } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?k WHERE { { ?a property:country_of_origin ?k . ?a rdf:type ontology:work_of_art . ?k rdf:type ontology:political_territorial_entity } UNION { ?a property:country_of_origin ?k . ?k rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:film_genre } } GROUP BY ?k } }
[]
political territorial entity work of art film genre
Q5705 Q1000 Q769
SYSTEM
Catalonia, Gabon, Grenada
Q1000 Q1747689 Q769 Q763 Q13353 Q781 Q5705 Q1823 Q691 Q234 Q2991382 Q9337 Q23635 Q31747 Q129286
(c(Q838948)|c(Q201658),P495,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q778
relation P495
type Q838948
type Q201658
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?m < ?y ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P495 resource:Q778 . { { ?x rdf:type ontology:Q201658 } UNION { ?x rdf:type ontology:Q838948 } } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?k WHERE { { ?a property:P495 ?k . ?a rdf:type ontology:Q838948 . ?k rdf:type ontology:Q1048835 } UNION { ?a property:P495 ?k . ?k rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q201658 } } GROUP BY ?k } }
Gabon Ancient Rome Grenada Saint Kitts and Nevis Montserrat Antigua and Barbuda Catalonia Aceh Papua New Guinea Flemish Region County of Provence Flemish Region Bermuda Irish Free State British Raj
Catalonia Gabon Grenada
action less
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 film genre
action count
action filter_multi_types
action find_reverse
entity The Bahamas
relation country of origin
type work of art
type film genre
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?m < ?y ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:country_of_origin resource:The_Bahamas . { { ?x rdf:type ontology:film_genre } UNION { ?x rdf:type ontology:work_of_art } } } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?k WHERE { { ?a property:country_of_origin ?k . ?a rdf:type ontology:work_of_art . ?k rdf:type ontology:political_territorial_entity } UNION { ?a property:country_of_origin ?k . ?k rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:film_genre } } GROUP BY ?k } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q664
P1376
Q515
USER
Which city is the capital of New Zealand ?
(c(Q515),P1376,Q664)
action filter_type
action find_reverse
entity Q664
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', 'Q664']
SELECT DISTINCT ?f WHERE { ?f property:P1376 resource:Q664 . ?f rdf:type ontology:Q515 }
New Zealand
action filter_type
action find_reverse
entity New Zealand
relation capital of
type city
[{'concept': 'city'}, 'capital of', 'New Zealand']
SELECT DISTINCT ?f WHERE { ?f property:capital_of resource:New_Zealand . ?f rdf:type ontology:city }
[]
city
Q23661
SYSTEM
Wellington
Q23661
(c(Q515),P1376,Q664)
action filter_type
action find_reverse
entity Q664
relation P1376
type Q515
The capital of New Zealand is [ANSWER]
[{'concept': 'Q515'}, 'P1376', 'Q664']
SELECT DISTINCT ?f WHERE { ?f property:P1376 resource:Q664 . ?f rdf:type ontology:Q515 }
Wellington
The capital of New Zealand is Wellington
Wellington
action filter_type
action find_reverse
entity New Zealand
relation capital of
type city
[{'concept': 'city'}, 'capital of', 'New Zealand']
SELECT DISTINCT ?f WHERE { ?f property:capital_of resource:New_Zealand . ?f rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q664
P1532
Q502895
USER
Who play for that political territory ?
(c(Q502895),P1532,Q23661)
action filter_type
action find_reverse
entity Q664
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q23661']
SELECT DISTINCT ?b WHERE { ?b property:P1532 resource:Q664 . ?b rdf:type ontology:Q502895 }
New Zealand
action filter_type
action find_reverse
entity New Zealand
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Wellington']
SELECT DISTINCT ?b WHERE { ?b property:country_for_sport resource:New_Zealand . ?b rdf:type ontology:common_name }
[]
common name
Q18011042 Q9334690 Q20354781
SYSTEM
Eliza McCartney, Sean O'Neill, David Parkes
Q20354781 Q9334690 Q18011042 Q20312729
(c(Q502895),P1532,Q23661)
action filter_type
action find_reverse
entity Q664
relation P1532
type Q502895
[ANSWERS] play for that political territory
[{'concept': 'Q502895'}, 'P1532', 'Q23661']
SELECT DISTINCT ?b WHERE { ?b property:P1532 resource:Q664 . ?b rdf:type ontology:Q502895 }
David Parkes Sean O'Neill Eliza McCartney Shane Murland
Eliza McCartney, Sean O'Neill and David Parkes play for that political territory
Eliza McCartney Sean O'Neill David Parkes
action filter_type
action find_reverse
entity New Zealand
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Wellington']
SELECT DISTINCT ?b WHERE { ?b property:country_for_sport resource:New_Zealand . ?b rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3185868 Q5552871
P106
Q12737077
USER
Which occupations are the job of Gerry Mays or Joseph de Raxi de Flassan ?
OR((Q5552871,P106,c(Q12737077)), (Q3185868,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q5552871
relation P106
action find
entity Q3185868
relation P106
type Q12737077
{'OR': [['Q5552871', 'P106', {'concept': 'Q12737077'}], ['Q3185868', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?g ) { ( resource:Q5552871 ) ( resource:Q3185868 ) } . ?g property:P106 ?h } . ?h rdf:type ontology:Q12737077 }
Joseph de Raxi de Flassan Gerry Mays
action filter_type
action union
action find
entity Gerry Mays
relation occupation
action find
entity Joseph de Raxi de Flassan
relation occupation
type occupation
{'OR': [['Gerry Mays', 'occupation', {'concept': 'occupation'}], ['Joseph de Raxi de Flassan', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?g ) { ( resource:Gerry_Mays ) ( resource:Joseph_de_Raxi_de_Flassan ) } . ?g property:occupation ?h } . ?h rdf:type ontology:occupation }
[]
occupation
Q11900058 Q628099 Q937857
SYSTEM
explorer, association football manager, association football player
Q11900058 Q628099 Q937857
OR((Q5552871,P106,c(Q12737077)), (Q3185868,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q5552871
relation P106
action find
entity Q3185868
relation P106
type Q12737077
[ANSWERS] are the job of Gerry Mays or Joseph de Raxi de Flassan
{'OR': [['Q5552871', 'P106', {'concept': 'Q12737077'}], ['Q3185868', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?g ) { ( resource:Q5552871 ) ( resource:Q3185868 ) } . ?g property:P106 ?h } . ?h rdf:type ontology:Q12737077 }
explorer association football manager association football player
Explorer, association football manager and association football player are the job of Gerry Mays or Joseph de Raxi de Flassan
explorer association football manager association football player
action filter_type
action union
action find
entity Gerry Mays
relation occupation
action find
entity Joseph de Raxi de Flassan
relation occupation
type occupation
{'OR': [['Gerry Mays', 'occupation', {'concept': 'occupation'}], ['Joseph de Raxi de Flassan', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?g ) { ( resource:Gerry_Mays ) ( resource:Joseph_de_Raxi_de_Flassan ) } . ?g property:occupation ?h } . ?h rdf:type ontology:occupation }
[]