Simple Question (Direct)
Simple Question
Q12715279
P937
Q56061
USER
Where did Hans Arnesen Urdahl work ?
(Q12715279,P937,c(Q56061))
action filter_type
action find
entity Q12715279
relation P937
type Q56061
['Q12715279', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q12715279 property:P937 ?h }
Hans Arnesen Urdahl
action filter_type
action find
entity Hans Arnesen Urdahl
relation work location
type administrative territorial entity
['Hans Arnesen Urdahl', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Hans_Arnesen_Urdahl property:work_location ?h }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q12715279,P937,c(Q56061))
action filter_type
action find
entity Q12715279
relation P937
type Q56061
Hans Arnesen Urdahl worked i [ANSWER]
['Q12715279', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q12715279 property:P937 ?h }
Oslo
Hans Arnesen Urdahl worked i Oslo
Oslo
action filter_type
action find
entity Hans Arnesen Urdahl
relation work location
type administrative territorial entity
['Hans Arnesen Urdahl', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:Hans_Arnesen_Urdahl property:work_location ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12715279
P39
Q12737077
USER
Which occupation was a position occupied by Hans Arnesen Urdahl ?
(Q12715279,P39,c(Q12737077))
action filter_type
action find
entity Q12715279
relation P39
type Q12737077
['Q12715279', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q12715279 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Hans Arnesen Urdahl
action filter_type
action find
entity Hans Arnesen Urdahl
relation position held
type occupation
['Hans Arnesen Urdahl', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Hans_Arnesen_Urdahl property:position_held ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q12715279,P39,c(Q12737077))
action filter_type
action find
entity Q12715279
relation P39
type Q12737077
A [ANSWER] was a position occupied by Hans Arnesen Urdahl
['Q12715279', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q12715279 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
member of the Parliament of Norway
A member of the Parliament of Norway was a position occupied by Hans Arnesen Urdahl
member of the Parliament of Norway
action filter_type
action find
entity Hans Arnesen Urdahl
relation position held
type occupation
['Hans Arnesen Urdahl', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Hans_Arnesen_Urdahl property:position_held ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q45408
Q12737077
USER
And also tell me about Wilhelm Schraml?
(Q45408,P39,c(Q12737077))
action filter_type
action find
entity Q45408
relation P39
type Q12737077
['Q45408', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q45408 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Wilhelm Schraml
action filter_type
action find
entity Wilhelm Schraml
relation position held
type occupation
['Wilhelm Schraml', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Wilhelm_Schraml property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q29182
SYSTEM
bishop
Q29182
(Q45408,P39,c(Q12737077))
action filter_type
action find
entity Q45408
relation P39
type Q12737077
[ANSWER]
['Q45408', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q45408 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
bishop
bishop
action filter_type
action find
entity Wilhelm Schraml
relation position held
type occupation
['Wilhelm Schraml', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Wilhelm_Schraml property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q29182 Q285166
P361
Q151885
USER
Is that occupation a component of oral administration ?
(Q29182,P361,Q285166)
action is_in
entity Q285166
action find
entity Q29182
relation P361
['Q29182', 'P361', 'Q285166']
ASK WHERE { resource:Q29182 property:P361 resource:Q285166 }
bishop oral administration
action is_in
entity oral administration
action find
entity bishop
relation part of
['bishop', 'part of', 'oral administration']
ASK WHERE { resource:bishop property:part_of resource:oral_administration }
[]
concept
SYSTEM
NO
(Q29182,P361,Q285166)
action is_in
entity Q285166
action find
entity Q29182
relation P361
[ANSWER]
['Q29182', 'P361', 'Q285166']
ASK WHERE { resource:Q29182 property:P361 resource:Q285166 }
No
action is_in
entity oral administration
action find
entity bishop
relation part of
['bishop', 'part of', 'oral administration']
ASK WHERE { resource:bishop property:part_of resource:oral_administration }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q15619164 Q82799 Q56061
USER
Which administrative territories have max number of abstract beings or names as their namesake ?
(c(Q56061),P138,c(Q15619164)|c(Q82799))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q15619164
action find_tuple_counts
relation P138
type Q56061
type Q82799
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q15619164'}, {'concept': 'Q82799'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?j WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:Q82799 ) ( ontology:Q15619164 ) } } GROUP BY ?j } . FILTER ( ?q = ?c ) . { SELECT DISTINCT ( MAX ( ?f ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?k WHERE { { ?k property:P138 ?y . ?y rdf:type ontology:Q15619164 . ?k rdf:type ontology:Q56061 } UNION { ?k property:P138 ?y . ?k rdf:type ontology:Q56061 . ?y rdf:type ontology:Q82799 } } GROUP BY ?k } } }
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type abstract being
action find_tuple_counts
relation named after
type administrative territorial entity
type name
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'abstract being'}, {'concept': 'name'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?j WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:name ) ( ontology:abstract_being ) } } GROUP BY ?j } . FILTER ( ?q = ?c ) . { SELECT DISTINCT ( MAX ( ?f ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?k WHERE { { ?k property:named_after ?y . ?y rdf:type ontology:abstract_being . ?k rdf:type ontology:administrative_territorial_entity } UNION { ?k property:named_after ?y . ?k rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:name } } GROUP BY ?k } } }
[]
abstract being name administrative territorial entity
Q167895 Q1620075 Q13652348
SYSTEM
Kalamata, Hippos, Nebo
Q167895 Q1620075 Q13652348
(c(Q56061),P138,c(Q15619164)|c(Q82799))
action argmax
action union
action find_tuple_counts
relation P138
type Q56061
type Q15619164
action find_tuple_counts
relation P138
type Q56061
type Q82799
[ANSWERS] have max number of abstract beings or names as their namesake
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q15619164'}, {'concept': 'Q82799'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?j WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:Q82799 ) ( ontology:Q15619164 ) } } GROUP BY ?j } . FILTER ( ?q = ?c ) . { SELECT DISTINCT ( MAX ( ?f ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?k WHERE { { ?k property:P138 ?y . ?y rdf:type ontology:Q15619164 . ?k rdf:type ontology:Q56061 } UNION { ?k property:P138 ?y . ?k rdf:type ontology:Q56061 . ?y rdf:type ontology:Q82799 } } GROUP BY ?k } } }
Kalamata Hippos Nebo
Kalamata, Hippos and Nebo have max number of abstract beings or names as their namesake
Kalamata Hippos Nebo
action argmax
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type abstract being
action find_tuple_counts
relation named after
type administrative territorial entity
type name
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'abstract being'}, {'concept': 'name'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) ?j WHERE { ?i rdf:type ?a . VALUES ( ?a ) { ( ontology:name ) ( ontology:abstract_being ) } } GROUP BY ?j } . FILTER ( ?q = ?c ) . { SELECT DISTINCT ( MAX ( ?f ) AS ?c ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) ?k WHERE { { ?k property:named_after ?y . ?y rdf:type ontology:abstract_being . ?k rdf:type ontology:administrative_territorial_entity } UNION { ?k property:named_after ?y . ?k rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:name } } GROUP BY ?k } } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q19000444 Q285166
P636 P2175
Q8386
USER
Which drugs are administered through oral administration route and are not used for treating neurotic disorder ?
AND((c(Q8386),P636,Q285166), NOT((c(Q8386),P2175,Q19000444)))
action filter_type
action difference
action find_reverse
entity Q285166
relation P636
action find_reverse
entity Q19000444
relation P2175
type Q8386
{'AND': [[{'concept': 'Q8386'}, 'P636', 'Q285166'], {'NOT': [[{'concept': 'Q8386'}, 'P2175', 'Q19000444']]}]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q8386 . ?w property:P636 resource:Q285166 . FILTER NOT EXISTS { ?w property:P2175 resource:Q19000444 } }
neurotic disorder oral administration
action filter_type
action difference
action find_reverse
entity oral administration
relation route of administration
action find_reverse
entity neurotic disorder
relation medical condition treated
type drug
{'AND': [[{'concept': 'drug'}, 'route of administration', 'oral administration'], {'NOT': [[{'concept': 'drug'}, 'medical condition treated', 'neurotic disorder']]}]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:drug . ?w property:route_of_administration resource:oral_administration . FILTER NOT EXISTS { ?w property:medical_condition_treated resource:neurotic_disorder } }
[]
drug
Q411648 Q410291 Q2496906 Q18216 Q4567614 Q3993743 Q198504 Q424952 Q255968 Q418594
SYSTEM
Some of them are tacrolimus, verapamil, Salicylamide, acetylsalicylic acid, mycophenolate mofetil, toremifene, zidovudine, nadolol, 6-aminocaproic acid, valacyclovir
Q412690 Q418060 Q409468 Q7263592 Q4112207 Q18216 Q183554 Q422438 Q1958189 Q304570 Q418594 Q4567614 Q424952 Q421239 Q422232 Q6827783 Q2623398 Q417997 Q411648 Q425729 Q425296 Q410265 Q413370 Q418730 Q287029 Q422188 Q4462924 Q418817 Q2496906 Q2268608 Q210402 Q412621 Q424037 Q410291 Q213511 Q420207 Q407431 Q415242 Q198504 Q57055 Q3993743 Q418656 Q418571 Q4161323 Q410546 Q7679533 Q3277473 Q419472 Q411417 Q255968
AND((c(Q8386),P636,Q285166), NOT((c(Q8386),P2175,Q19000444)))
action filter_type
action difference
action find_reverse
entity Q285166
relation P636
action find_reverse
entity Q19000444
relation P2175
type Q8386
[ANSWERS] are administered through oral administration route and are not used for treating neurotic disorder
{'AND': [[{'concept': 'Q8386'}, 'P636', 'Q285166'], {'NOT': [[{'concept': 'Q8386'}, 'P2175', 'Q19000444']]}]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q8386 . ?w property:P636 resource:Q285166 . FILTER NOT EXISTS { ?w property:P2175 resource:Q19000444 } }
galantamine desloratadine metoprolol Pyridoxine/doxylamine bismuth subcitrate acetylsalicylic acid Fosfomycin chloroquine Bromopride Nitroxoline valacyclovir mycophenolate mofetil nadolol D-penicillamine methotrexate mibefradil Nicergoline ezetimibe tacrolimus Ivabradine prazosin sodium picosulfate Tegafur enclomiphene Isotretinoin spironolactone Triazavirin etoposide Salicylamide Dextropropoxyphene diazepam Methyldopa roxithromycin verapamil Erythromycin capecitabine Warfarin altretamine zidovudine paracetamol toremifene procarbazine ethacrynic acid Ergoloid mesylate neostigmine talinolol distigmine bromide pyridostigmine cephalexin 6-aminocaproic acid
Tacrolimus, verapamil, Salicylamide, acetylsalicylic acid, mycophenolate mofetil, toremifene, zidovudine, nadolol, 6-aminocaproic acid and valacyclovir are administered through oral administration route and are not used for treating neurotic disorder
tacrolimus verapamil Salicylamide acetylsalicylic acid mycophenolate mofetil toremifene zidovudine nadolol 6-aminocaproic acid valacyclovir
action filter_type
action difference
action find_reverse
entity oral administration
relation route of administration
action find_reverse
entity neurotic disorder
relation medical condition treated
type drug
{'AND': [[{'concept': 'drug'}, 'route of administration', 'oral administration'], {'NOT': [[{'concept': 'drug'}, 'medical condition treated', 'neurotic disorder']]}]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:drug . ?w property:route_of_administration resource:oral_administration . FILTER NOT EXISTS { ?w property:medical_condition_treated resource:neurotic_disorder } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q183344
P2176
Q8386 Q2057971
USER
How many health problems require greater number of drugs to be prescribed than sinusitis ?
(c(Q2057971),P2176,c(Q8386))
action count
action greater
action find_tuple_counts
relation P2176
type Q2057971
type Q8386
action count
action filter_type
action find
entity Q183344
relation P2176
type Q2057971
[{'concept': 'Q2057971'}, 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?o ) WHERE { ?u property:P2176 ?r . ?u rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q8386 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ontology:Q2057971 . resource:Q183344 property:P2176 ?e } } . FILTER ( ?o > ?t ) }
sinusitis
action count
action greater
action find_tuple_counts
relation drug used for treatment
type health problem
type drug
action count
action filter_type
action find
entity sinusitis
relation drug used for treatment
type health problem
[{'concept': 'health problem'}, 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?o ) WHERE { ?u property:drug_used_for_treatment ?r . ?u rdf:type ontology:health_problem . ?r rdf:type ontology:drug } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ontology:health_problem . resource:sinusitis property:drug_used_for_treatment ?e } } . FILTER ( ?o > ?t ) }
[]
drug health problem
SYSTEM
50
Q3776920 Q35869 Q264118 Q180614 Q208414 Q18554191 Q12152 Q18556697 Q172341 Q212961 Q2157462 Q12206 Q1485 Q815819 Q19000444 Q1128595 Q844935 Q19597369 Q4676432 Q52849 Q221668 Q389735 Q486485 Q19000661 Q128581 Q18556113 Q467635 Q3041498 Q12174 Q1477 Q18556020 Q18556932 Q159701 Q544006 Q199804 Q181257 Q8277 Q131755 Q11085 Q41861 Q124407 Q41571 Q62736 Q504790 Q187255 Q18971555 Q1088156 Q101896 Q187440 Q29496
(c(Q2057971),P2176,c(Q8386))
action count
action greater
action find_tuple_counts
relation P2176
type Q2057971
type Q8386
action count
action filter_type
action find
entity Q183344
relation P2176
type Q2057971
[ANSWER]
[{'concept': 'Q2057971'}, 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?o ) WHERE { ?u property:P2176 ?r . ?u rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q8386 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ontology:Q2057971 . resource:Q183344 property:P2176 ?e } } . FILTER ( ?o > ?t ) }
bacterial pneumonia asthma acute myeloid leukemia melanoma lymphoma visual epilepsy myocardial infarction human immunodeficiency virus infectious disease ovarian cancer pancreatic cancer schizophreniform disorder diabetes mellitus systemic lupus erythematosus atrial fibrillation neurotic disorder pulmonary hypertension coronary artery disease Gram-negative bacterial infection pustulosis of palm and sole ankylosing spondylitis acute cystitis cardiovascular disease Anasarca congestive heart failure breast cancer non-small cell lung carcinoma multiple myeloma eye disease obesity ulcerative colitis lung benign neoplasm large intestine cancer glaucoma anxiety disorder chronic obstructive pulmonary disease prostate cancer multiple sclerosis bipolar disorder Parkinson's disease hypertension type 1 diabetes mellitus epilepsy osteoarthritis/osteodystrophy nephrotic syndrome rheumatoid arthritis obstructive lung disease chronic lymphocytic leukemia gonorrhea urticaria leukemia
50
action count
action greater
action find_tuple_counts
relation drug used for treatment
type health problem
type drug
action count
action filter_type
action find
entity sinusitis
relation drug used for treatment
type health problem
[{'concept': 'health problem'}, 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?o ) WHERE { ?u property:drug_used_for_treatment ?r . ?u rdf:type ontology:health_problem . ?r rdf:type ontology:drug } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ontology:health_problem . resource:sinusitis property:drug_used_for_treatment ?e } } . FILTER ( ?o > ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q18216
P921
Q732577 Q386724
USER
How many publications or works were primarily based on acetylsalicylic acid ?
(c(Q732577),P921,Q18216) (c(Q386724),P921,Q18216)
action count
action union
action filter_type
action find_reverse
entity Q18216
relation P921
type Q732577
action filter_type
action find_reverse
entity Q18216
relation P921
type Q386724
[{'concept': 'Q732577'}, 'P921', 'Q18216'] [{'concept': 'Q386724'}, 'P921', 'Q18216']
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { VALUES ( ?s ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } . ?m rdf:type ?s }
acetylsalicylic acid
action count
action union
action filter_type
action find_reverse
entity acetylsalicylic acid
relation main subject
type publication
action filter_type
action find_reverse
entity acetylsalicylic acid
relation main subject
type work
[{'concept': 'publication'}, 'main subject', 'acetylsalicylic acid'] [{'concept': 'work'}, 'main subject', 'acetylsalicylic acid']
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { VALUES ( ?s ) { ( ontology:publication ) ( ontology:work ) } . ?m rdf:type ?s }
[]
publication work
SYSTEM
4
Q26322786 Q24849428 Q26369015 Q26324660
(c(Q732577),P921,Q18216) (c(Q386724),P921,Q18216)
action count
action union
action filter_type
action find_reverse
entity Q18216
relation P921
type Q732577
action filter_type
action find_reverse
entity Q18216
relation P921
type Q386724
[ANSWER]
[{'concept': 'Q732577'}, 'P921', 'Q18216'] [{'concept': 'Q386724'}, 'P921', 'Q18216']
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { VALUES ( ?s ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } . ?m rdf:type ?s }
Asbestos induces AP-1 activation in cell culture and transgenic mice Simultaneous determination of acetylsalicylic acid non-enzyme mediated oxidative products Occupational safety and health guidelines for chemical hazards. Supplement III-OHG Toxic Substances and Congenital Malformations
4
action count
action union
action filter_type
action find_reverse
entity acetylsalicylic acid
relation main subject
type publication
action filter_type
action find_reverse
entity acetylsalicylic acid
relation main subject
type work
[{'concept': 'publication'}, 'main subject', 'acetylsalicylic acid'] [{'concept': 'work'}, 'main subject', 'acetylsalicylic acid']
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { VALUES ( ?s ) { ( ontology:publication ) ( ontology:work ) } . ?m rdf:type ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q585
P47
Q1048835
USER
Who share the border with Oslo ?
(Q585,P47,c(Q1048835))
action filter_type
action find
entity Q585
relation P47
type Q1048835
['Q585', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1048835 . resource:Q585 property:P47 ?s }
Oslo
action filter_type
action find
entity Oslo
relation shares border with
type political territorial entity
['Oslo', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Oslo property:shares_border_with ?s }
[]
political territorial entity
Q50615 Q50617 Q50618
SYSTEM
Akershus, Oppland, Buskerud
Q50615 Q50617 Q50618
(Q585,P47,c(Q1048835))
action filter_type
action find
entity Q585
relation P47
type Q1048835
[ANSWERS] share the border with Oslo
['Q585', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1048835 . resource:Q585 property:P47 ?s }
Akershus Oppland Buskerud
Akershus, Oppland and Buskerud share the border with Oslo
Akershus Oppland Buskerud
action filter_type
action find
entity Oslo
relation shares border with
type political territorial entity
['Oslo', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Oslo property:shares_border_with ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q50615
P1376
Q56061
USER
Which administrative territory is the capital of Akershus ?
(c(Q56061),P1376,Q50615)
action filter_type
action find_reverse
entity Q50615
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q50615']
SELECT DISTINCT ?q WHERE { ?q property:P1376 resource:Q50615 . ?q rdf:type ontology:Q56061 }
Akershus
action filter_type
action find_reverse
entity Akershus
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Akershus']
SELECT DISTINCT ?q WHERE { ?q property:capital_of resource:Akershus . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(c(Q56061),P1376,Q50615)
action filter_type
action find_reverse
entity Q50615
relation P1376
type Q56061
[ANSWER] is the capital of Akershus
[{'concept': 'Q56061'}, 'P1376', 'Q50615']
SELECT DISTINCT ?q WHERE { ?q property:P1376 resource:Q50615 . ?q rdf:type ontology:Q56061 }
Oslo
Oslo is the capital of Akershus
Oslo
action filter_type
action find_reverse
entity Akershus
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Akershus']
SELECT DISTINCT ?q WHERE { ?q property:capital_of resource:Akershus . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q167895
P706
Q271669
USER
Which is the landform in which Kalamata is located on ?
(Q167895,P706,c(Q271669))
action filter_type
action find
entity Q167895
relation P706
type Q271669
['Q167895', 'P706', {'concept': 'Q271669'}]
SELECT DISTINCT ?h WHERE { resource:Q167895 property:P706 ?h . ?h rdf:type ontology:Q271669 }
Kalamata
action filter_type
action find
entity Kalamata
relation located on terrain feature
type landform
['Kalamata', 'located on terrain feature', {'concept': 'landform'}]
SELECT DISTINCT ?h WHERE { resource:Kalamata property:located_on_terrain_feature ?h . ?h rdf:type ontology:landform }
[]
landform
Q78967
SYSTEM
Peloponnese
Q78967
(Q167895,P706,c(Q271669))
action filter_type
action find
entity Q167895
relation P706
type Q271669
[ANSWER] is the landform in which Kalamata is located on
['Q167895', 'P706', {'concept': 'Q271669'}]
SELECT DISTINCT ?h WHERE { resource:Q167895 property:P706 ?h . ?h rdf:type ontology:Q271669 }
Peloponnese
Peloponnese is the landform in which Kalamata is located on
Peloponnese
action filter_type
action find
entity Kalamata
relation located on terrain feature
type landform
['Kalamata', 'located on terrain feature', {'concept': 'landform'}]
SELECT DISTINCT ?h WHERE { resource:Kalamata property:located_on_terrain_feature ?h . ?h rdf:type ontology:landform }
[]