Simple Question (Direct)
Simple Question
Q11686029
P106
Q12737077
USER
Which occupation is the profession of Andrzej Paluch ?
(Q11686029,P106,c(Q12737077))
action filter_type
action find
entity Q11686029
relation P106
type Q12737077
['Q11686029', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q11686029 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Andrzej Paluch
action filter_type
action find
entity Andrzej Paluch
relation occupation
type occupation
['Andrzej Paluch', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Andrzej_Paluch property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q2306091
SYSTEM
sociologist
Q2306091
(Q11686029,P106,c(Q12737077))
action filter_type
action find
entity Q11686029
relation P106
type Q12737077
The [ANSWER] is the profession of Andrzej Paluch
['Q11686029', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q11686029 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
sociologist
The sociologist is the profession of Andrzej Paluch
sociologist
action filter_type
action find
entity Andrzej Paluch
relation occupation
type occupation
['Andrzej Paluch', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Andrzej_Paluch property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11686029
P20
Q486972
USER
Where did the demise of Andrzej Paluch occur ?
(Q11686029,P20,c(Q486972))
action filter_type
action find
entity Q11686029
relation P20
type Q486972
['Q11686029', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { resource:Q11686029 property:P20 ?z . ?z rdf:type ontology:Q486972 }
Andrzej Paluch
action filter_type
action find
entity Andrzej Paluch
relation place of death
type human settlement
['Andrzej Paluch', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { resource:Andrzej_Paluch property:place_of_death ?z . ?z rdf:type ontology:human_settlement }
[]
human settlement
Q31487
SYSTEM
Kraków
Q31487
(Q11686029,P20,c(Q486972))
action filter_type
action find
entity Q11686029
relation P20
type Q486972
The demise of Andrzej Paluch occurred in [ANSWER]
['Q11686029', 'P20', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { resource:Q11686029 property:P20 ?z . ?z rdf:type ontology:Q486972 }
Kraków
The demise of Andrzej Paluch occurred in Kraków
Kraków
action filter_type
action find
entity Andrzej Paluch
relation place of death
type human settlement
['Andrzej Paluch', 'place of death', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { resource:Andrzej_Paluch property:place_of_death ?z . ?z rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11686029
P19
Q486972
USER
Where was Andrzej Paluch born ?
(Q11686029,P19,c(Q486972))
action filter_type
action find
entity Q11686029
relation P19
type Q486972
['Q11686029', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q486972 . resource:Q11686029 property:P19 ?a }
Andrzej Paluch
action filter_type
action find
entity Andrzej Paluch
relation place of birth
type human settlement
['Andrzej Paluch', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:human_settlement . resource:Andrzej_Paluch property:place_of_birth ?a }
[]
human settlement
Q31487
SYSTEM
Kraków
Q31487
(Q11686029,P19,c(Q486972))
action filter_type
action find
entity Q11686029
relation P19
type Q486972
Andrzej Paluch was born in [ANSWER]
['Q11686029', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q486972 . resource:Q11686029 property:P19 ?a }
Kraków
Andrzej Paluch was born in Kraków
Kraków
action filter_type
action find
entity Andrzej Paluch
relation place of birth
type human settlement
['Andrzej Paluch', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:human_settlement . resource:Andrzej_Paluch property:place_of_birth ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q2342494 Q732577
USER
How many occupations were the main subjects of approximately 1 collectables or publications 's work ?
(c(Q2342494)|c(Q732577),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?j ) WHERE { { ?e rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q2342494 . ?a property:P921 ?e } UNION { ?a property:P921 ?e . ?e rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q732577 } } GROUP BY ?e } . FILTER ( ?j = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 1
[[{'concept': 'collectable'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?j ) WHERE { { ?e rdf:type ontology:occupation . ?a rdf:type ontology:collectable . ?a property:main_subject ?e } UNION { ?a property:main_subject ?e . ?e rdf:type ontology:occupation . ?a rdf:type ontology:publication } } GROUP BY ?e } . FILTER ( ?j = 1 ) }
[]
occupation collectable publication
SYSTEM
20
Q774306 Q3809586 Q83307 Q4610556 Q18145518 Q2094335 Q82955 Q730242 Q42973 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q15320003 Q16003605 Q49757 Q1238570 Q2259532
(c(Q2342494)|c(Q732577),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 1
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?j ) WHERE { { ?e rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q2342494 . ?a property:P921 ?e } UNION { ?a property:P921 ?e . ?e rdf:type ontology:Q12737077 . ?a rdf:type ontology:Q732577 } } GROUP BY ?e } . FILTER ( ?j = 1 ) }
surgeon Wikipedian in Residence minister model Member of the New Zealand House of Representatives United States Attorney politician test pilot architect ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly migrant worker elementary school student poet political scientist cleric
20
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 1
[[{'concept': 'collectable'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?j ) WHERE { { ?e rdf:type ontology:occupation . ?a rdf:type ontology:collectable . ?a property:main_subject ?e } UNION { ?a property:main_subject ?e . ?e rdf:type ontology:occupation . ?a rdf:type ontology:publication } } GROUP BY ?e } . FILTER ( ?j = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q31487
P190
Q56061
USER
How many administrative territories are the sister cities of Kraków ?
(Q31487,P190,c(Q56061))
action count
action filter_type
action find
entity Q31487
relation P190
type Q56061
['Q31487', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q31487 property:P190 ?a . ?a rdf:type ontology:Q56061 }
Kraków
action count
action filter_type
action find
entity Kraków
relation sister city
type administrative territorial entity
['Kraków', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Kraków property:sister_city ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
26
Q118958 Q5196 Q994 Q649 Q1735 Q68965 Q220 Q45779 Q49218 Q23436 Q1780 Q1781 Q4361 Q1479 Q49111 Q80985 Q173474 Q5582862 Q2090 Q129259 Q216 Q8717 Q490 Q2044 Q62 Q36036
(Q31487,P190,c(Q56061))
action count
action filter_type
action find
entity Q31487
relation P190
type Q56061
[ANSWER]
['Q31487', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q31487 property:P190 ?a . ?a rdf:type ontology:Q56061 }
Leuven Grozny Tbilisi Moscow Innsbruck Solothurn Rome Pécs Rochester Edinburgh Bratislava Budapest Curitiba Bordeaux Cambridge Fes Veliko Tarnovo Cusco Nuremberg Niš Vilnius Seville Milan Florence San Francisco Lviv
26
action count
action filter_type
action find
entity Kraków
relation sister city
type administrative territorial entity
['Kraków', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Kraków property:sister_city ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q329775
Q56061
USER
And what about Kiskunhalas?
(Q329775,P190,c(Q56061))
action count
action filter_type
action find
entity Q329775
relation P190
type Q56061
['Q329775', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q329775 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Kiskunhalas
action count
action filter_type
action find
entity Kiskunhalas
relation sister city
type administrative territorial entity
['Kiskunhalas', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Kiskunhalas property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
2
(Q329775,P190,c(Q56061))
action count
action filter_type
action find
entity Q329775
relation P190
type Q56061
[ANSWER]
['Q329775', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Q329775 property:P190 ?n . ?n rdf:type ontology:Q56061 }
2
action count
action filter_type
action find
entity Kiskunhalas
relation sister city
type administrative territorial entity
['Kiskunhalas', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { resource:Kiskunhalas property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q329775
P36
Q1162835
USER
Which district of Hungary has Kiskunhalas as its administrative centre ?
(c(Q1162835),P36,Q329775)
action filter_type
action find_reverse
entity Q329775
relation P36
type Q1162835
[{'concept': 'Q1162835'}, 'P36', 'Q329775']
SELECT DISTINCT ?r WHERE { ?r property:P36 resource:Q329775 . ?r rdf:type ontology:Q1162835 }
Kiskunhalas
action filter_type
action find_reverse
entity Kiskunhalas
relation capital
type district of Hungary
[{'concept': 'district of Hungary'}, 'capital', 'Kiskunhalas']
SELECT DISTINCT ?r WHERE { ?r property:capital resource:Kiskunhalas . ?r rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q594485
SYSTEM
Kiskunhalas  District
Q594485
(c(Q1162835),P36,Q329775)
action filter_type
action find_reverse
entity Q329775
relation P36
type Q1162835
District Kiskunhalas District has Kiskunhalas as its administrative centre
[{'concept': 'Q1162835'}, 'P36', 'Q329775']
SELECT DISTINCT ?r WHERE { ?r property:P36 resource:Q329775 . ?r rdf:type ontology:Q1162835 }
Kiskunhalas  District
District Kiskunhalas District has Kiskunhalas as its administrative centre
Kiskunhalas  District
action filter_type
action find_reverse
entity Kiskunhalas
relation capital
type district of Hungary
[{'concept': 'district of Hungary'}, 'capital', 'Kiskunhalas']
SELECT DISTINCT ?r WHERE { ?r property:capital resource:Kiskunhalas . ?r rdf:type ontology:district_of_Hungary }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q329775
P1376
Q1162835
USER
Which district of Hungary has that city as its county seat ?
(Q594485,P1376,c(Q1162835))
action filter_type
action find
entity Q329775
relation P1376
type Q1162835
['Q594485', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?j WHERE { resource:Q329775 property:P1376 ?j . ?j rdf:type ontology:Q1162835 }
Kiskunhalas
action filter_type
action find
entity Kiskunhalas
relation capital of
type district of Hungary
['Kiskunhalas  District', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?j WHERE { resource:Kiskunhalas property:capital_of ?j . ?j rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q594485
SYSTEM
Kiskunhalas  District
Q594485
(Q594485,P1376,c(Q1162835))
action filter_type
action find
entity Q329775
relation P1376
type Q1162835
District Kiskunhalas District has that city as its county seat
['Q594485', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?j WHERE { resource:Q329775 property:P1376 ?j . ?j rdf:type ontology:Q1162835 }
Kiskunhalas  District
District Kiskunhalas District has that city as its county seat
Kiskunhalas  District
action filter_type
action find
entity Kiskunhalas
relation capital of
type district of Hungary
['Kiskunhalas  District', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?j WHERE { resource:Kiskunhalas property:capital_of ?j . ?j rdf:type ontology:district_of_Hungary }
[]